Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » jar files for IConnectionProfile
jar files for IConnectionProfile [message #720132] Mon, 29 August 2011 23:55 Go to next message
Brian Lavender is currently offline Brian LavenderFriend
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: Tue, 30 August 2011 02:14]

Report message to a moderator

Re: jar files for IConnectionProfile [message #724655 is a reply to message #720132] Mon, 12 September 2011 18:27 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
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
Previous Topic:SQL Results View : Usage of "SQL Results/Type query expression here"
Next Topic:jar files for accessing existing connection profile
Goto Forum:
  


Current Time: Thu Nov 27 19:59:14 GMT 2014

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

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