Package jSimMacs.display.dialog.ssh

Examples of jSimMacs.display.dialog.ssh.SSHFileChooser


          + project.getName();
      fileChooser = new JFileChooser(inputDir);
    } else {
      // String inputDir = ((RemoteProject)project).getPath() +
      // project.getPathName();
      fileChooser = new SSHFileChooser(null, (RemoteProject) project);// DirectoryServiceFileChooser.createSSHFileChooser((RemoteProject)project);
      // ((SSHFileChooser) fileChooser).showDialog();
      // ((SSHFileChooser) fileChooser).pack();
      // ((SSHFileChooser) fileChooser).setSize(500, 350);
    }
View Full Code Here


      String inputDir = JSimLogic.getInstance().getWorkspaceDir()
        + project.getName();
      fileChooser = new JFileChooser(inputDir);
    }
    else{
      fileChooser = new SSHFileChooser(null, (RemoteProject)project);
      //((SSHFileChooser) fileChooser).showDialog();
      //((SSHFileChooser)fileChooser).pack();
      //((SSHFileChooser)fileChooser).setSize(500, 350);
    }
  }
View Full Code Here

  public void setMultiSelectionEnabled(){
    if (fileChooser instanceof JFileChooser) {
      JFileChooser fc = (JFileChooser) fileChooser;
      fc.setMultiSelectionEnabled(true);
    } else if (fileChooser instanceof SSHFileChooser) {
      SSHFileChooser sshFc = (SSHFileChooser) fileChooser;
      sshFc.setMultiSelectionEnabled(true);
    }
    multiSelectionEnabled = true;
  }
View Full Code Here

        }
        textField.setText(textFieldText);
      }
    }
    else if (fileChooser instanceof SSHFileChooser) {
      SSHFileChooser sshFc = (SSHFileChooser) fileChooser;
      sshFc.showDialog();
      //sshFc.setLocationRelativeTo(this);
      //sshFc.setVisible(true);
      if(sshFc.isApproval()){
        if(multiSelectionEnabled)
          textField.setText(sshFc.getSelectedFiles());
        else
          textField.setText(sshFc.getSelectedFile());
      }
    }
       
  }
View Full Code Here

      String inputDir = JSimLogic.getInstance().getWorkspaceDir()
        + project.getName();
      fileChooser = new JFileChooser(inputDir);
    }
    else{
      fileChooser = new SSHFileChooser(null, (RemoteProject)project);
      //((SSHFileChooser) fileChooser).showDialog();
      //((SSHFileChooser)fileChooser).pack();
      //((SSHFileChooser)fileChooser).setSize(500, 350);
    }
   
View Full Code Here

      String inputDir = JSimLogic.getInstance().getWorkspaceDir()
        + project.getName();
      fileChooser = new JFileChooser(inputDir);
    }
    else{
      fileChooser = new SSHFileChooser(null, (RemoteProject)project);
      //((SSHFileChooser) fileChooser).showDialog();
      //((SSHFileChooser)fileChooser).pack();
      //((SSHFileChooser)fileChooser).setSize(500, 350);
    }
   
View Full Code Here

      if (returnVal == JFileChooser.APPROVE_OPTION) {
        outfile = fc.getSelectedFile();
      }
    }
    else if (fileChooser instanceof SSHFileChooser) {
      SSHFileChooser sshFc = (SSHFileChooser) fileChooser;
      sshFc.showDialog();
      //sshFc.setLocationRelativeTo(this);
      //sshFc.setVisible(true);
      sshOutfile = null;
      if(sshFc.isApproval()){
        sshOutfile = sshFc.getSelectedFile();
      }
    }
       
  }
View Full Code Here

          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 {
View Full Code Here

      String inputDir = JSimLogic.getInstance().getWorkspaceDir()
        + project.getName();
      fileChooser = new JFileChooser(inputDir);
    }
    else{
      fileChooser = new SSHFileChooser(null, (RemoteProject)project);//DirectoryServiceFileChooser.createSSHFileChooser((RemoteProject)project);
    }
   
   
  }
View Full Code Here

      String inputDir = JSimLogic.getInstance().getWorkspaceDir()
        + project.getName();
      fileChooser = new JFileChooser(inputDir);
    }
    else
      fileChooser = new SSHFileChooser(null, (RemoteProject)project)
  }
View Full Code Here

TOP

Related Classes of jSimMacs.display.dialog.ssh.SSHFileChooser

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.