Package jSimMacs.display.gromacs

Examples of jSimMacs.display.gromacs.GromacsPanel


   * @param selectedComponent
   * @throws IOException
   */
  private void createDirectories(Project project, Component selectedComponent)
      throws IOException {
    GromacsPanel gPanel = (GromacsPanel) selectedComponent;
    Set<String> directories = gPanel.directoryEntries();
    if (directories == null)
      return;
    DataHandler handler = null;
    if (project.getLocation() == ProjectLocation.SSH)
      handler = ((RemoteProject) project).getDataHandler();
View Full Code Here


  public void actionPerformed(ActionEvent e) {
    Object es = e.getSource();
    if (es == cancelButton)
      dispose();
    else if (es == runButton) {
      GromacsPanel gPanel = (GromacsPanel) tabbedPane.getSelectedComponent();
      gPanel.updateProjectData();
      JSimLogic.getInstance().runCommand(project,
          tabbedPane.getSelectedComponent(),
          gPanel.isInteractive());
      if (tabbedPane.getSelectedIndex() < tabbedPane.getComponents().length - 1)
        ((GromacsPanel) tabbedPane.getComponent(tabbedPane
            .getSelectedIndex() + 1)).updateData();
    } else if (es == showButton) {
      GromacsPanel gPanel = (GromacsPanel) tabbedPane.getSelectedComponent();
      JSimLogic.getInstance().showCommand(project,
          tabbedPane.getSelectedComponent(), gPanel.isInteractive());
    } else if (es == applyButton) {
      Component[] tabComponents = tabbedPane.getComponents();
      for (int i = 0; i < tabComponents.length; i++) {
        GromacsPanel component = (GromacsPanel) tabComponents[i];
        component.updateProjectData();
      }

      JSimLogic.getInstance().saveProjectSettings(project);
    } else if (es == helpButton){
      URL helpURL = JSimLogic.getInstance().loadHelpString(tabbedPane.getSelectedComponent());
View Full Code Here

TOP

Related Classes of jSimMacs.display.gromacs.GromacsPanel

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.