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
---Schemas
---- ...

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();
logger.info("!! profiles " + profile.length);
for (IConnectionProfile iConnectionProfile : profile) {
logger.info("!! iConnectionProfile ************************ ");
logger.info("!! getName "+iConnectionProfile.getName());
logger.info("!! getDescription "+iConnectionProfile.getDescription());
logger.info("!! getInstanceID "+iConnectionProfile.getInstanceID());
}

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

What else can I do? Neutral

Thank you in advance,

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


Current Time: Thu Dec 18 23:21:55 GMT 2014

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

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