Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Getting connection profile content
Getting connection profile content [message #36374] Mon, 17 September 2007 14:28 Go to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I am now able to successfully get a handle on a particular
IConnectionProfile via the ProfileManager object.

How can I get the meta data content from that connection profile and use it
in another plugin (rather than just viewing it as a user)?

Obviously, I must connect first.

Thanks,
Chuck
Re: Getting connection profile content [message #36401 is a reply to message #36374] Mon, 17 September 2007 17:34 Go to previous messageGo to next message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
Let me be more specific:

How can I get a handle on a
(org.eclipse.datatools.modelbase.sql.schema.)Database object
given a connection profile?

Thanks,
Chuck

"Chuck Doucette" <cdoucette@vaultus.com> wrote in message
news:fcm30k$8al$1@build.eclipse.org...
>I am now able to successfully get a handle on a particular
>IConnectionProfile via the ProfileManager object.
>
> How can I get the meta data content from that connection profile and use
> it in another plugin (rather than just viewing it as a user)?
>
> Obviously, I must connect first.
>
> Thanks,
> Chuck
>
>
Re: Getting connection profile content [message #36421 is a reply to message #36401] Tue, 18 September 2007 06:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hui.cao.sybase.ocm

In SQL Dev Tools, we have a utility method ProfileUtil.getDatabase, which
does exactly what you want, although this is not API and we can not
guarantee its stability. In fact, you can see that the parameter
DatabaseIdentifier asks more than what this method needs: a profile name is
sufficient. So we'll overload this method with a profileName as the
parameter later.

--
Best Regards!

Max (Hui) Cao
Sybase Shanghai RD

"Chuck Doucette" <cdoucette@vaultus.com> wrote in message
news:fcmdsc$3sv$1@build.eclipse.org...
> Let me be more specific:
>
> How can I get a handle on a
> (org.eclipse.datatools.modelbase.sql.schema.)Database object
> given a connection profile?
>
> Thanks,
> Chuck
>
> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
> news:fcm30k$8al$1@build.eclipse.org...
>>I am now able to successfully get a handle on a particular
>>IConnectionProfile via the ProfileManager object.
>>
>> How can I get the meta data content from that connection profile and use
>> it in another plugin (rather than just viewing it as a user)?
>>
>> Obviously, I must connect first.
>>
>> Thanks,
>> Chuck
>>
>>
>
>
Re: Getting connection profile content [message #36438 is a reply to message #36421] Tue, 18 September 2007 15:53 Go to previous message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I believe this method or a similar one should be part of the public API -
don't you?

If you want people to leverage the work that you've done, then you should be
able to programmatically access the contents of the connection profile (not
just as a user).
I'm just trying to figure out the best way to do that.

Thank you very much for your help.

Chuck

"Hui Cao" <hui.cao@sybase.ocm> wrote in message
news:fcnrl2$knd$1@build.eclipse.org...
> In SQL Dev Tools, we have a utility method ProfileUtil.getDatabase, which
> does exactly what you want, although this is not API and we can not
> guarantee its stability. In fact, you can see that the parameter
> DatabaseIdentifier asks more than what this method needs: a profile name
> is sufficient. So we'll overload this method with a profileName as the
> parameter later.
>
> --
> Best Regards!
>
> Max (Hui) Cao
> Sybase Shanghai RD
>
> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
> news:fcmdsc$3sv$1@build.eclipse.org...
>> Let me be more specific:
>>
>> How can I get a handle on a
>> (org.eclipse.datatools.modelbase.sql.schema.)Database object
>> given a connection profile?
>>
>> Thanks,
>> Chuck
>>
>> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
>> news:fcm30k$8al$1@build.eclipse.org...
>>>I am now able to successfully get a handle on a particular
>>>IConnectionProfile via the ProfileManager object.
>>>
>>> How can I get the meta data content from that connection profile and use
>>> it in another plugin (rather than just viewing it as a user)?
>>>
>>> Obviously, I must connect first.
>>>
>>> Thanks,
>>> Chuck
>>>
>>>
>>
>>
>
>
Re: Getting connection profile content [message #587912 is a reply to message #36374] Mon, 17 September 2007 17:34 Go to previous message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
Let me be more specific:

How can I get a handle on a
(org.eclipse.datatools.modelbase.sql.schema.)Database object
given a connection profile?

Thanks,
Chuck

"Chuck Doucette" <cdoucette@vaultus.com> wrote in message
news:fcm30k$8al$1@build.eclipse.org...
>I am now able to successfully get a handle on a particular
>IConnectionProfile via the ProfileManager object.
>
> How can I get the meta data content from that connection profile and use
> it in another plugin (rather than just viewing it as a user)?
>
> Obviously, I must connect first.
>
> Thanks,
> Chuck
>
>
Re: Getting connection profile content [message #587923 is a reply to message #36401] Tue, 18 September 2007 06:36 Go to previous message
Hui Cao is currently offline Hui CaoFriend
Messages: 29
Registered: July 2009
Junior Member
In SQL Dev Tools, we have a utility method ProfileUtil.getDatabase, which
does exactly what you want, although this is not API and we can not
guarantee its stability. In fact, you can see that the parameter
DatabaseIdentifier asks more than what this method needs: a profile name is
sufficient. So we'll overload this method with a profileName as the
parameter later.

--
Best Regards!

Max (Hui) Cao
Sybase Shanghai RD

"Chuck Doucette" <cdoucette@vaultus.com> wrote in message
news:fcmdsc$3sv$1@build.eclipse.org...
> Let me be more specific:
>
> How can I get a handle on a
> (org.eclipse.datatools.modelbase.sql.schema.)Database object
> given a connection profile?
>
> Thanks,
> Chuck
>
> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
> news:fcm30k$8al$1@build.eclipse.org...
>>I am now able to successfully get a handle on a particular
>>IConnectionProfile via the ProfileManager object.
>>
>> How can I get the meta data content from that connection profile and use
>> it in another plugin (rather than just viewing it as a user)?
>>
>> Obviously, I must connect first.
>>
>> Thanks,
>> Chuck
>>
>>
>
>
Re: Getting connection profile content [message #587931 is a reply to message #36421] Tue, 18 September 2007 15:53 Go to previous message
Charles Doucette is currently offline Charles DoucetteFriend
Messages: 125
Registered: July 2009
Senior Member
I believe this method or a similar one should be part of the public API -
don't you?

If you want people to leverage the work that you've done, then you should be
able to programmatically access the contents of the connection profile (not
just as a user).
I'm just trying to figure out the best way to do that.

Thank you very much for your help.

Chuck

"Hui Cao" <hui.cao@sybase.ocm> wrote in message
news:fcnrl2$knd$1@build.eclipse.org...
> In SQL Dev Tools, we have a utility method ProfileUtil.getDatabase, which
> does exactly what you want, although this is not API and we can not
> guarantee its stability. In fact, you can see that the parameter
> DatabaseIdentifier asks more than what this method needs: a profile name
> is sufficient. So we'll overload this method with a profileName as the
> parameter later.
>
> --
> Best Regards!
>
> Max (Hui) Cao
> Sybase Shanghai RD
>
> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
> news:fcmdsc$3sv$1@build.eclipse.org...
>> Let me be more specific:
>>
>> How can I get a handle on a
>> (org.eclipse.datatools.modelbase.sql.schema.)Database object
>> given a connection profile?
>>
>> Thanks,
>> Chuck
>>
>> "Chuck Doucette" <cdoucette@vaultus.com> wrote in message
>> news:fcm30k$8al$1@build.eclipse.org...
>>>I am now able to successfully get a handle on a particular
>>>IConnectionProfile via the ProfileManager object.
>>>
>>> How can I get the meta data content from that connection profile and use
>>> it in another plugin (rather than just viewing it as a user)?
>>>
>>> Obviously, I must connect first.
>>>
>>> Thanks,
>>> Chuck
>>>
>>>
>>
>>
>
>
Previous Topic:Getting connection profile content
Next Topic:Connect just hangs
Goto Forum:
  


Current Time: Sun Dec 21 06:20:32 GMT 2014

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

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