Programmatically DB access connection via DTP on Eclipse 3.5 (Galileo) [message #490662] |
Fri, 09 October 2009 11:32 |
Eclipse User |
|
|
|
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? 
Thank you in advance,
Le
|
|
|
Powered by
FUDForum. Page generated in 0.06093 seconds