shell.setText("Open via SSH");
shell.setSize(490, 190);
UXFormLayoutUtil.enableLayout(shell, 10);
hostInput = new UXTextInput(shell);
hostInput.setLabel("Host name:");
hostInput.setLabelWidth(55);
portInput = new UXTextInput(shell);
portInput.setLabel("Port:");
portInput.setInput(Configurer.application.getString("reader.remote.defaultPort"));
UXFormLayoutUtil.setLeft(hostInput, 0);
UXFormLayoutUtil.setRight(hostInput, 80);
UXFormLayoutUtil.setTop(hostInput, 0);
UXFormLayoutUtil.setLeft(portInput, hostInput, 5, SWT.RIGHT);
UXFormLayoutUtil.setRight(portInput, 100);
UXFormLayoutUtil.setVerticalCentredOf(portInput, hostInput);
usernameInput = new UXTextInput(shell);
usernameInput.setLabel("Username:");
usernameInput.setLabelWidth(55);
passwordInput = new UXPasswordInput(shell);
passwordInput.setLabel("Password:");
passwordInput.setLabelWidth(55);
UXFormLayoutUtil.setLeft(usernameInput, 0);
UXFormLayoutUtil.setRight(usernameInput, 50);
UXFormLayoutUtil.setTop(usernameInput, hostInput, 5, SWT.BOTTOM);
UXFormLayoutUtil.setLeft(passwordInput, 0);
UXFormLayoutUtil.setRight(passwordInput, 50);
UXFormLayoutUtil.setTop(passwordInput, usernameInput, 5, SWT.BOTTOM);
filepathInput = new UXTextInput(shell);
filepathInput.setLabel("Filepath:");
filepathInput.setLabelWidth(55);
linesSpinner = new UXSpinner(shell);
linesSpinner.setLabel("Number of lines:");