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);
}
Aggregations