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();
}