Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Store personal settings into Mylyn for my own connector
Store personal settings into Mylyn for my own connector [message #46703] Mon, 07 April 2008 12:54 Go to next message
Eclipse UserFriend
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 #46865 is a reply to message #46703] Wed, 09 April 2008 15:21 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 8
Registered: July 2009
Junior Member
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 #46894 is a reply to message #46703] Wed, 09 April 2008 21:40 Go to previous messageGo to next message
Steffen Pingel is currently offline Steffen PingelFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 15:21 Go to previous message
No real name is currently offline No real nameFriend
Messages: 8
Registered: July 2009
Junior Member
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 21:40 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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,
Previous Topic:General overview of Task history?
Next Topic:BugzillaTask to RepositoryTaskData? (Tutorial outdated)
Goto Forum:
  


Current Time: Sat Nov 29 10:00:21 GMT 2014

Powered by FUDForum. Page generated in 0.02665 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software