Package net.sourceforge.ztail.ui.windows

Examples of net.sourceforge.ztail.ui.windows.SSHFileDialogWindow


  public void openLocalFileReq(URI uri, int nrOfLines) {
    openTab(FileService.getInstance().openLocalFile(uri, nrOfLines));
  }
 
  public void openSSHFileReq(Shell shell) {
    final SSHFileDialogWindow win = new SSHFileDialogWindow(shell);
    win.setOpenAction(new UXDefaultAction() {
      @Override
      public void doAction() {
        try {
          URI uri = new URI("ssh://" + win.getUsername() + "@" + win.getHostname() +
              ":" + win.getPort() + win.getFileName());
          openSSHFileReq(uri, win.getPassword(), win.getNumberOfLines());
          win.close();
        } catch (URISyntaxException e) {
          BaseController.instance().showErrorMessage(e);
        }
      }
    });
   
    win.open();
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.ztail.ui.windows.SSHFileDialogWindow

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.