Getting connection profile content [message #36374] |
Mon, 17 September 2007 10:28  |
Eclipse User |
|
|
|
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 11:53  |
Eclipse User |
|
|
|
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 13:34  |
Eclipse User |
|
|
|
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 02:36  |
Eclipse User |
|
|
|
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 11:53  |
Eclipse User |
|
|
|
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
>>>
>>>
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05578 seconds