Skip to main content



      Home
Home » Eclipse Projects » DTP » Getting connection profile content
Getting connection profile content [message #36374] Mon, 17 September 2007 10:28 Go to next message
Eclipse UserFriend
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 13:34 Go to previous messageGo to next message
Eclipse UserFriend
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 02: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 11:53 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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: Tue Jul 01 03:01:44 EDT 2025

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

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

Back to the top