Package jSimMacs.display.gromacs.event

Examples of jSimMacs.display.gromacs.event.ParamEditorFinishedEvent


          outfile = new File(outfile.toString());
        }
        if (n == JOptionPane.YES_OPTION) {
          outfile = new File(outfile.toString());
          JSimLogic.getInstance().writeParameterFile(this, outfile);
          fireParamEditorFinished(new ParamEditorFinishedEvent(this));
        }
      }
      if (sshOutfile != null) {
        SSHFileChooser sshFc = (SSHFileChooser) fileChooser;
        SSHDataHandler handler = sshFc.getHandler();
        String localFile = handler.createTempPath(sshOutfile);
        localFile += sshOutfile.substring(sshOutfile.lastIndexOf("/") + 1 , sshOutfile.length());
        outfile = new File(localFile);
        JSimLogic.getInstance().writeParameterFile(this, outfile);
        try {
          handler.copyToServer(outfile);
          fireParamEditorFinished(new ParamEditorFinishedEvent(this));
        } catch (IOException e) {
          JOptionPane.showMessageDialog(this, e.getMessage(),
              "Save error", JOptionPane.ERROR_MESSAGE);
          e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of jSimMacs.display.gromacs.event.ParamEditorFinishedEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.