EnvironmentVariable existingVariable = (EnvironmentVariable) items[i]
.getData();
if (existingVariable.getName().equals(name)) {
- boolean overWrite = MessageDialog
- .openQuestion(
- getShell(),
- "Overwrite variable?",
- MessageFormat
- .format(
- "A variable named {0} already exists. Overwrite?",
- new String[] { name }));
+ boolean overWrite = MessageDialog.openQuestion(getShell(),"Overwrite variable?",
+ MessageFormat.format("A variable named {0} already exists. Overwrite?",new String[] { name }));
if (!overWrite) {
return false;
}
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#getImage()
*/
- public Image getImage() {
- return XDebugUIPluginImages
- .get(XDebugUIPluginImages.IMG_EVIEW_ENVIROMENT_TAB);
+ public Image getImage() {
+ return XDebugUIPluginImages.get(XDebugUIPluginImages.IMG_EVIEW_ENVIROMENT_TAB);
}
/*
}
protected IDialogSettings getDialogSettings() {
- IDialogSettings settings = XDebugCorePlugin.getDefault()
- .getDialogSettings();
+// IDialogSettings settings = XDebugCorePlugin.getDefault().getDialogSettings();
+ IDialogSettings settings = getDialogSettings();
IDialogSettings section = settings
.getSection(getDialogSettingsSectionName());
if (section == null) {
// * @see org.eclipse.jface.window.Window#getInitialSize()
// */
// protected Point getInitialSize() {
- // Point size = super.getInitialSize();
- // return
- // DialogSettingsHelper.getInitialSize(getDialogSettingsSectionName(),
- // size);
- // }
-
- // /* (non-Javadoc)
- // * @see org.eclipse.jface.window.Window#close()
- // */
- // public boolean close() {
- // DialogSettingsHelper.persistShellGeometry(getShell(),
- // getDialogSettingsSectionName());
- // return super.close();
- // }
+ // Point size = super.getInitialSize();
+ // return DialogSettingsHelper.getInitialSize(getDialogSettingsSectionName(), size);
+ // }
+
+ // /* (non-Javadoc)
+ // * @see org.eclipse.jface.window.Window#close()
+ // */
+ // public boolean close() {
+ // DialogSettingsHelper.persistShellGeometry(getShell(), getDialogSettingsSectionName());
+ // return super.close();
+ // }
}
}