use of org.eclipse.titan.executor.HostController in project titan.EclipsePlug-ins by eclipse.
the class HostControllersTab method handleCopySelected.
private void handleCopySelected() {
IStructuredSelection sel = (IStructuredSelection) hostViewer.getSelection();
HostController controller = (HostController) sel.getFirstElement();
if (null == controller) {
return;
}
hostViewer.add(controller.clone());
updateLaunchConfigurationDialog();
}
use of org.eclipse.titan.executor.HostController in project titan.EclipsePlug-ins by eclipse.
the class HostControllersTab method handleEditButtonSelected.
private void handleEditButtonSelected() {
IStructuredSelection sel = (IStructuredSelection) hostViewer.getSelection();
HostController controller = (HostController) sel.getFirstElement();
if (null == controller) {
return;
}
String host = controller.host();
String workingDirectory = controller.workingdirectory();
String executable = controller.executable();
String command = controller.command();
HostControllerDialog dialog = new HostControllerDialog(getShell(), getProject(), HOSTCONTROLLER);
dialog.setHostName(host);
dialog.setWorkingdirectory(workingDirectory);
dialog.setExecutable(executable);
dialog.setCommand(command);
if (dialog.open() != Window.OK) {
return;
}
controller.configure(dialog.getHostName(), dialog.getWorkingdirectory(), dialog.getExecutable(), dialog.getCommand());
hostViewer.refresh(controller, true);
updateLaunchConfigurationDialog();
}
Aggregations