Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2006-10-19 22:16:37 +0000
committerDarin Swanson2006-10-19 22:16:37 +0000
commit152b2455160ff49a48eefc496a6171fb784f209e (patch)
tree95b4a0bf4711fc495cb01ba604d5a56f137e7a05 /org.eclipse.ui.externaltools
parent3deb7efd0af505da4f7e7fc2d6f1bc410dcefc06 (diff)
downloadeclipse.platform.debug-152b2455160ff49a48eefc496a6171fb784f209e.tar.gz
eclipse.platform.debug-152b2455160ff49a48eefc496a6171fb784f209e.tar.xz
eclipse.platform.debug-152b2455160ff49a48eefc496a6171fb784f209e.zip
Bug 155510 - Project properties->Builders: Cancel doesn't work properly.
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
index 930f079f4..9f4ec4d3d 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/ui/BuilderPropertyPage.java
@@ -413,15 +413,18 @@ public final class BuilderPropertyPage extends PropertyPage implements ICheckSta
*/
public void checkStateChanged(CheckStateChangedEvent event) {
Object element= event.getElement();
+ boolean checked = event.getChecked();
if (element instanceof ILaunchConfiguration) {
- enableLaunchConfiguration((ILaunchConfiguration) element, event.getChecked());
+ enableLaunchConfiguration((ILaunchConfiguration) element, checked);
} else if (element instanceof ICommand) {
Shell shell= getShell();
if (shell == null) {
return;
}
- if (MessageDialog.openConfirm(shell, ExternalToolsUIMessages.BuilderPropertyPage_6, ExternalToolsUIMessages.BuilderPropertyPage_7)) {
- enableCommand((ICommand)element, event.getChecked());
+ if (checked) {
+ enableCommand((ICommand)element, checked);
+ } else if (MessageDialog.openConfirm(shell, ExternalToolsUIMessages.BuilderPropertyPage_6, ExternalToolsUIMessages.BuilderPropertyPage_7)) {
+ enableCommand((ICommand)element, checked);
} else {
viewer.removeCheckStateListener(this);
viewer.setChecked(element, true);

Back to the top