public static String[] getCachedCredentials(ServerConnectionManager scm) { String[] result = (String[]) m_credentialsMap.get(scm.toString()); if (result == null) { result = (String[]) m_credentialsMap.get(scm.getHostname()); } return result; }
public String getToolTipText(MouseEvent event) { String tip = null; Point p = event.getPoint(); int row = rowAtPoint(p); if (row != -1) { XObjectTableModel model = (XObjectTableModel) getModel(); ServerConnectionManager scm = (ServerConnectionManager) model.getObjectAt(row); Exception e = scm.getConnectionException(); if (e != null) { tip = ServerNode.getConnectionExceptionString(e, scm); } } return tip; }
static void cacheCredentials(ServerConnectionManager scm, String[] credentials) { m_credentialsMap.put(scm.toString(), credentials); m_credentialsMap.put(scm.getHostname(), credentials); }