Search in sources :

Example 6 with IConnectionProfile

use of org.eclipse.datatools.connectivity.IConnectionProfile in project jbosstools-hibernate by jbosstools.

the class ConnectionProfileUtil method getDriverDefinition.

public static DriverInstance getDriverDefinition(String connectionProfile) {
    if (connectionProfile == null) {
        return null;
    }
    IConnectionProfile profile = ProfileManager.getInstance().getProfileByName(connectionProfile);
    if (profile == null) {
        return null;
    }
    String driverID = getDriverDefinitionId(profile);
    return org.eclipse.datatools.connectivity.drivers.DriverManager.getInstance().getDriverInstanceByID(driverID);
}
Also used : IConnectionProfile(org.eclipse.datatools.connectivity.IConnectionProfile)

Aggregations

IConnectionProfile (org.eclipse.datatools.connectivity.IConnectionProfile)6 ArrayList (java.util.ArrayList)2 Properties (java.util.Properties)2 URISyntaxException (java.net.URISyntaxException)1 URL (java.net.URL)1 Map (java.util.Map)1 Set (java.util.Set)1 TreeMap (java.util.TreeMap)1 TreeSet (java.util.TreeSet)1 Element (org.dom4j.Element)1 CoreException (org.eclipse.core.runtime.CoreException)1 IPath (org.eclipse.core.runtime.IPath)1 Path (org.eclipse.core.runtime.Path)1 IConnection (org.eclipse.datatools.connectivity.IConnection)1 ConfigurationXMLFactory (org.hibernate.console.ConfigurationXMLFactory)1 ConsoleConfigurationPreferences (org.hibernate.console.preferences.ConsoleConfigurationPreferences)1 ExporterFactory (org.hibernate.eclipse.console.model.impl.ExporterFactory)1 AttributeDescription (org.hibernate.eclipse.launch.ExportersXMLAttributeDescription.AttributeDescription)1 IEnvironment (org.jboss.tools.hibernate.runtime.spi.IEnvironment)1 IService (org.jboss.tools.hibernate.runtime.spi.IService)1