private Layout getButtons() {
buttonsForm = new HLayout();
installButton = new EnhancedIButton(MSG.view_remoteAgentInstall_installAgent());
installButton.setExtraSpace(10);
installButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
absPathValidator.setPerformCheck(true);
try {
if (connectionForm.validate()) {
new CheckSSHConnectionCallback() {
@Override
protected void doActualWork() {
installAgent();
}
}.execute();
}
} finally {
absPathValidator.setPerformCheck(false);
}
}
});
uninstallButton = new EnhancedIButton(MSG.view_remoteAgentInstall_uninstallAgent());
uninstallButton.setExtraSpace(10);
uninstallButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
absPathValidator.setPerformCheck(true);
try {
if (connectionForm.validate()) {
new CheckSSHConnectionCallback() {
@Override
protected void doActualWork() {
uninstallAgent();
}
}.execute();
}
} finally {
absPathValidator.setPerformCheck(false);
}
}
});
startButton = new EnhancedIButton(MSG.common_label_startAgent());
startButton.setExtraSpace(10);
startButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
if (connectionForm.validate()) {
new CheckSSHConnectionCallback() {
@Override
protected void doActualWork() {
startAgent();
}
}.execute();
}
}
});
stopButton = new EnhancedIButton(MSG.view_remoteAgentInstall_stopAgent());
stopButton.setExtraSpace(10);
stopButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent clickEvent) {
if (connectionForm.validate()) {
new CheckSSHConnectionCallback() {
@Override
protected void doActualWork() {