/** * Construct a ServerIdentifier from a connection profile. * @param profileName * @return */ public static ServerIdentifier getServerIdentifier(DatabaseIdentifier databaseIdentifier) { ProfileManager pManager = ProfileManager.getInstance(); IConnectionProfile connProfile1 = pManager.getProfileByName(databaseIdentifier.getProfileName()); if(connProfile1 == null) { return null; } Properties profile1Props = connProfile1.getBaseProperties(); //TODO CONN won't support host and port anymore? // String host = profile1Props.getProperty(HOST); // String port = profile1Props.getProperty(PORT); String host = null; String port = null; String url = profile1Props.getProperty(URL); DBHelper helper = SQLToolsFacade.getDBHelper(databaseIdentifier); return helper.getServerIdentifier(host, port, url, ProfileUtil.getDatabaseVendorDefinitionId(databaseIdentifier.getProfileName())); }