Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2011-03-22 17:21:05 +0000
committerMichael Rennie2011-03-22 17:21:05 +0000
commit054e01b6824fc1a97c93020f079be5b8562f7aa9 (patch)
treebbcbb32db89c837d8871dc4d8781306591542355 /org.eclipse.debug.ui
parent8953d55db8500c9ae298a2993f6191fa537f5e23 (diff)
downloadeclipse.platform.debug-054e01b6824fc1a97c93020f079be5b8562f7aa9.tar.gz
eclipse.platform.debug-054e01b6824fc1a97c93020f079be5b8562f7aa9.tar.xz
eclipse.platform.debug-054e01b6824fc1a97c93020f079be5b8562f7aa9.zip
Bug 338847 - Cancel button in edit launch config does not really cancel
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationEditDialog.java20
1 files changed, 7 insertions, 13 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationEditDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationEditDialog.java
index af33234e5..d99f93c1e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationEditDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/LaunchConfigurationEditDialog.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2007 IBM Corporation and others.
+ * Copyright (c) 2006, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -74,20 +74,14 @@ public class LaunchConfigurationEditDialog extends LaunchConfigurationDialog {
* @see org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog#buttonPressed(int)
*/
protected void buttonPressed(int buttonId) {
- if(buttonId == ID_LAUNCH_BUTTON) {
- setReturnCode(IDialogConstants.OK_ID);
- int status = shouldSaveCurrentConfig();
- if(status != IDialogConstants.CANCEL_ID) {
- if(status != ID_DISCARD_BUTTON) {
- if(status == IDialogConstants.YES_ID) {
- getTabViewer().handleApplyPressed();
- }
+ int status = shouldSaveCurrentConfig();
+ if(status != IDialogConstants.CANCEL_ID) {
+ if(status != ID_DISCARD_BUTTON) {
+ if(status == IDialogConstants.YES_ID) {
+ getTabViewer().handleApplyPressed();
}
+ cancelPressed();
}
}
- else if(buttonId == ID_CANCEL_BUTTON) {
- setReturnCode(IDialogConstants.CANCEL_ID);
- }
- close();
}
}

Back to the top