| Store personal settings into Mylyn for my own connector [message #46703] | 
Mon, 07 April 2008 08: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 17:40    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 #47321 is a reply to message #46894] | 
Fri, 18 April 2008 05: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 #588987 is a reply to message #46703] | 
Wed, 09 April 2008 11:21   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Hi,  
  
I have the same issue than Emmanuelle, I tried to create a bridge between  
Eclipse and another software, using a mylyn connector. 
The first attempt always fail although I am supposed to be connect. 
It is very strange because my connection has just been checked as I have  
just created the repository. 
So in order to create the query , I have to validate my settings twice. 
The same phenomenum occures at each reboot of Eclipse. 
I would really appreciate an help to solve this problem because I have no  
idea left. 
I tried to put my needed-information in the url or in the additionnal  
settings... 
thanks you again for your help.
 |  
 |  
  | 
| Re: Store personal settings into Mylyn for my own connector [message #589000 is a reply to message #46703] | 
Wed, 09 April 2008 17:40   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 05: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 05: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.32796 seconds