Beispiel #1
0
 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;
 }
Beispiel #2
0
  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;
  }
Beispiel #3
0
 static void cacheCredentials(ServerConnectionManager scm, String[] credentials) {
   m_credentialsMap.put(scm.toString(), credentials);
   m_credentialsMap.put(scm.getHostname(), credentials);
 }