}
protected void duplicateRuntime() {
final IStructuredSelection selection = (IStructuredSelection) fRuntimeList
.getSelection();
final RuntimeInfo vm = (RuntimeInfo) selection.getFirstElement();
if (vm == null) {
return;
}
final RuntimeInfo vm1 = new RuntimeInfo.Builder(vm).withName(
vm.getName() + "_copy").build();
final AddRuntimeDialog dialog = new AddRuntimeDialog(this, getShell(), vm1);
dialog.setTitle(RuntimePreferenceMessages.edit_title);
if (dialog.open() != Window.OK) {
return;