Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Programmatically DB access connection via DTP on Eclipse 3.5 (Galileo)(Programmatically DB access connection via DTP on Eclipse 3.5 (Galileo))
Programmatically DB access connection via DTP on Eclipse 3.5 (Galileo) [message #490662] Fri, 09 October 2009 15:32
No real name is currently offline No real nameFriend
Messages: 14
Registered: October 2009
Junior Member
I don't understand how to connect code-side to my Connection Profile created in the Database Development Perspective.

My tree is here:

Database Connections
- test (MySQL v. 5.0.0)
-- test
---Authorization IDs
---- ...

I changed perspective to Plug-in development coding
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName("test");
without any result.

I also tried this:

IConnectionProfile[] profile = ProfileManager.getInstance().getProfiles();"!! profiles " + profile.length);
for (IConnectionProfile iConnectionProfile : profile) {"!! iConnectionProfile ************************ ");"!! getName "+iConnectionProfile.getName());"!! getDescription "+iConnectionProfile.getDescription());"!! getInstanceID "+iConnectionProfile.getInstanceID());

but the length of profiles is always empty (returning 0).

What else can I do? Neutral

Thank you in advance,

Previous Topic:Authorizing Perspectives
Next Topic:Flashing Window Title Text using Display.async
Goto Forum:

Current Time: Wed May 23 15:16:51 GMT 2018

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

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

Back to the top