Store personal settings into Mylyn for my own connector [message #46703] |
Mon, 07 April 2008 12:54 |
Eclipse User |
|
|
|
Originally posted by: ecastaings.sopragroup.com
Hi,
I am currently developing a connector for Mylyn.
The connection credentials included in Mylyn (server name, user name,
password, etc.) are not sufficient for my application : I need a domain
name and a project name to connect to my server.
Right now, I can connect myself, but the parameters I need are deleted
once the connection is established. When I want to create a New Query,
first there is an error telling : "Project is not connected" then I
validate my repository settings again and then I can create a query. But I
have to do this operation every time I open Eclipse or I won't be able to
work with my repository.
That's why I would like to know if there is a way to store extra settings
into Mylyn, so I won't have to validate my repository settings every time
I open Eclipse.
Thanks again for your help
|
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #46894 is a reply to message #46703] |
Wed, 09 April 2008 21:40 |
Steffen Pingel Messages: 706 Registered: July 2009 |
Senior Member |
|
|
Hi Emmanuelle,
have you tried storing the properties on the TaskRepository object using
setProperty()? All of these properties are persisted in the repository.xml
file.
You can take a look at AbstractRepositorySettingsPage.applyTo() and
EditRepositoryWizard.performFinish() to find out how this is used in the
framework.
Stefffen
Emmanuelle Castaings wrote:
> Hi,
>
> I am currently developing a connector for Mylyn.
> The connection credentials included in Mylyn (server name, user name,
> password, etc.) are not sufficient for my application : I need a domain
> name and a project name to connect to my server.
> Right now, I can connect myself, but the parameters I need are deleted
> once the connection is established. When I want to create a New Query,
> first there is an error telling : "Project is not connected" then I
> validate my repository settings again and then I can create a query. But I
> have to do this operation every time I open Eclipse or I won't be able to
> work with my repository.
>
> That's why I would like to know if there is a way to store extra settings
> into Mylyn, so I won't have to validate my repository settings every time
> I open Eclipse.
>
> Thanks again for your help
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #46982 is a reply to message #46894] |
Fri, 11 April 2008 09:03 |
Eclipse User |
|
|
|
Originally posted by: ecastaings.sopragroup.com
Hello
I tried to use setProperty in the function updateProperties of
AbstractRepositorySettingsPage this way :
repository.setProperty("DOMAIN_NAME", domainNameText.getText());
where
repository is the TaskRepository
DOMAIN_NAME is the name I give to my parameter
domainNameText is the field filled in by the user for this parameter
But I could not retrieve the value set in DOMAIN_NAME with getProperty
so it seems that we can only set properties that are already attributes of
TaskRepository...am I wrong?
Anyway I am looking at applyTo and performFinish to see how it works like
you suggested.
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #47321 is a reply to message #46894] |
Fri, 18 April 2008 09:41 |
Eclipse User |
|
|
|
Originally posted by: yann.selbonne.sopragroup.com
I tried succesfully to store the propoerties on task repository object
using setProperty.
Thanks to that, I could take back all the information I needed, using
getProperty method in my connection Class.
So I could have logged in my project at the start of Eclipse without doing
anything more.
Thanks again for your help.
Steffen Pingel wrote:
> Hi Emmanuelle,
> have you tried storing the properties on the TaskRepository object using
> setProperty()? All of these properties are persisted in the repository.xml
> file.
> You can take a look at AbstractRepositorySettingsPage.applyTo() and
> EditRepositoryWizard.performFinish() to find out how this is used in the
> framework.
> Stefffen
> Emmanuelle Castaings wrote:
>> Hi,
>>
>> I am currently developing a connector for Mylyn.
>> The connection credentials included in Mylyn (server name, user name,
>> password, etc.) are not sufficient for my application : I need a domain
>> name and a project name to connect to my server.
>> Right now, I can connect myself, but the parameters I need are deleted
>> once the connection is established. When I want to create a New Query,
>> first there is an error telling : "Project is not connected" then I
>> validate my repository settings again and then I can create a query. But I
>> have to do this operation every time I open Eclipse or I won't be able to
>> work with my repository.
>>
>> That's why I would like to know if there is a way to store extra settings
>> into Mylyn, so I won't have to validate my repository settings every time
>> I open Eclipse.
>>
>> Thanks again for your help
Hi Steffen,
|
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #589000 is a reply to message #46703] |
Wed, 09 April 2008 21:40 |
Steffen Pingel Messages: 706 Registered: July 2009 |
Senior Member |
|
|
Hi Emmanuelle,
have you tried storing the properties on the TaskRepository object using
setProperty()? All of these properties are persisted in the repository.xml
file.
You can take a look at AbstractRepositorySettingsPage.applyTo() and
EditRepositoryWizard.performFinish() to find out how this is used in the
framework.
Stefffen
Emmanuelle Castaings wrote:
> Hi,
>
> I am currently developing a connector for Mylyn.
> The connection credentials included in Mylyn (server name, user name,
> password, etc.) are not sufficient for my application : I need a domain
> name and a project name to connect to my server.
> Right now, I can connect myself, but the parameters I need are deleted
> once the connection is established. When I want to create a New Query,
> first there is an error telling : "Project is not connected" then I
> validate my repository settings again and then I can create a query. But I
> have to do this operation every time I open Eclipse or I won't be able to
> work with my repository.
>
> That's why I would like to know if there is a way to store extra settings
> into Mylyn, so I won't have to validate my repository settings every time
> I open Eclipse.
>
> Thanks again for your help
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #589038 is a reply to message #46894] |
Fri, 11 April 2008 09:03 |
Eclipse User |
|
|
|
Originally posted by: ecastaings.sopragroup.com
Hello
I tried to use setProperty in the function updateProperties of
AbstractRepositorySettingsPage this way :
repository.setProperty("DOMAIN_NAME", domainNameText.getText());
where
repository is the TaskRepository
DOMAIN_NAME is the name I give to my parameter
domainNameText is the field filled in by the user for this parameter
But I could not retrieve the value set in DOMAIN_NAME with getProperty
so it seems that we can only set properties that are already attributes of
TaskRepository...am I wrong?
Anyway I am looking at applyTo and performFinish to see how it works like
you suggested.
|
|
|
Re: Store personal settings into Mylyn for my own connector [message #589141 is a reply to message #46894] |
Fri, 18 April 2008 09:41 |
Eclipse User |
|
|
|
Originally posted by: yann.selbonne.sopragroup.com
I tried succesfully to store the propoerties on task repository object
using setProperty.
Thanks to that, I could take back all the information I needed, using
getProperty method in my connection Class.
So I could have logged in my project at the start of Eclipse without doing
anything more.
Thanks again for your help.
Steffen Pingel wrote:
> Hi Emmanuelle,
> have you tried storing the properties on the TaskRepository object using
> setProperty()? All of these properties are persisted in the repository.xml
> file.
> You can take a look at AbstractRepositorySettingsPage.applyTo() and
> EditRepositoryWizard.performFinish() to find out how this is used in the
> framework.
> Stefffen
> Emmanuelle Castaings wrote:
>> Hi,
>>
>> I am currently developing a connector for Mylyn.
>> The connection credentials included in Mylyn (server name, user name,
>> password, etc.) are not sufficient for my application : I need a domain
>> name and a project name to connect to my server.
>> Right now, I can connect myself, but the parameters I need are deleted
>> once the connection is established. When I want to create a New Query,
>> first there is an error telling : "Project is not connected" then I
>> validate my repository settings again and then I can create a query. But I
>> have to do this operation every time I open Eclipse or I won't be able to
>> work with my repository.
>>
>> That's why I would like to know if there is a way to store extra settings
>> into Mylyn, so I won't have to validate my repository settings every time
>> I open Eclipse.
>>
>> Thanks again for your help
Hi Steffen,
|
|
|
Powered by
FUDForum. Page generated in 0.03963 seconds