@Override public void actionPerformed(ActionEvent ev){
  final megan.remote.RemoteServiceBrowser remoteServiceBrowser=(megan.remote.RemoteServiceBrowser)getViewer();
  if (remoteServiceBrowser != null) {
    String url=remoteServiceBrowser.getURL();
    String user=remoteServiceBrowser.getUser();
    String password=remoteServiceBrowser.getPasswd();
    String command="openServer url='" + url + "'";
    if (user.length() > 0)     command+=" user='" + user + "'";
    if (password.length() > 0) {
synchronized (syncObject) {
        OpenRemoteServerCommand.hiddenPassword=password;
      }
      command+=" password='" + HIDDEN_PASSWORD + "'";
    }
    command+=";";
    if (url.length() > 0) {
      execute(command);
    }
  }
}

@ Override public void actionPerformed ( ActionEvent ev ) { final megan . remote . RemoteServiceBrowser remoteServiceBrowser = ( megan . remote . RemoteServiceBrowser ) getViewer ( ) ; if ( remoteServiceBrowser != null ) { String url = remoteServiceBrowser . getURL ( ) ; String user = remoteServiceBrowser . getUser ( ) ; String password = remoteServiceBrowser . getPasswd ( ) ; String command = "openServer url='" + url + "'" ; if ( user . length ( ) > 0 ) command += " user='" + user + "'" ; if ( password . length ( ) > 0 ) { synchronized ( syncObject ) { OpenRemoteServerCommand . hiddenPassword = password ; } command += " password='" + HIDDEN_PASSWORD + "'" ; } command += ";" ; if ( url . length ( ) > 0 ) { execute ( command ) ; } } }
action to be performed
