String initialValue = node.getLaunchConfiguration().getName();
InputDialog dialog = openInputDialog(Message_rename, Message_renameLaunchConfiguration, initialValue, new LaunchConfigurationNameValidator(initialValue));
if (dialog.getReturnCode() == Window.OK) {
ILaunchConfigurationWorkingCopy workingCopy = node.getLaunchConfiguration().getWorkingCopy();
workingCopy.rename(dialog.getValue().trim());
workingCopy.doSave();
}
} catch (CoreException e) {
openErrorDialog(Message_error, e.getMessage());
}
}