| jar files for IConnectionProfile [message #720132] |
Mon, 29 August 2011 19:55  |
Brian Lavender Messages: 12 Registered: July 2009 |
Junior Member |
|
|
I was looking at the FAQ and I saw the below question. What jar files do I include in my project for this? Or, is there a way to create a project that will included the necessary jars?
brian
Q: How do I programmatically access an existing connection profile?
A: Access to existing connection profiles (persisted or transient) is done using the ProfileManager class (org.eclipse.datatools.connectivity.ProfileManager). So this is pretty simple:
IConnectionProfile profile = ProfileManager.getInstance().getProfileByName("myprofile");
[Updated on: Mon, 29 August 2011 22:14] Report message to a moderator
|
|
|
| Re: jar files for IConnectionProfile [message #724655 is a reply to message #720132] |
Mon, 12 September 2011 14:27  |
Brian Fitzpatrick Messages: 495 Registered: July 2009 |
Senior Member |
|
|
That's an interesting question. Typically an Eclipse environment would need to have at least the Eclipse Connectivity plug-ins installed, plus any Enablement plug-ins for the particular DBMS you're using. I can't see that actually importing individual plug-ins would be a great way to go to get this functionality.
If you've got an Eclipse plug-in that depends on DTP plug-ins, you may only have to depend on the org.eclipse.datatools.connectivity plug-in to get access to the ProfileManager.
--Fitz
|
|
|
Powered by
FUDForum. Page generated in 0.01703 seconds