Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2017-07-26 09:35:43 +0000
committerAndrey Loskutov2017-07-26 09:35:43 +0000
commit7a313518037770c1d605ae22b0943d8cbc8079ac (patch)
tree9540de4250364a7508591a45f981b8df029332c3
parent01b82db06b6589232b10484f09a8b2738cb1cad3 (diff)
downloadeclipse.platform.debug-I20170726-2000.tar.gz
eclipse.platform.debug-I20170726-2000.tar.xz
eclipse.platform.debug-I20170726-2000.zip
Bug 517470 - use "No" instead of "Cancel" to allow saving the choiceI20170727-2000I20170727-0610I20170726-2000
Change-Id: I2381650995fe9ba7fe7a69c3ecfa8c9ab367f2f2 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
index f210c6222..cf6b28eca 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/launchConfigurations/PerspectiveManager.java
@@ -679,7 +679,7 @@ public class PerspectiveManager implements ILaunchListener, ISuspendTriggerListe
}
LinkedHashMap<String, Integer> buttonLabelToId = new LinkedHashMap<>();
buttonLabelToId.put(LaunchConfigurationsMessages.PerspectiveManager_switch, IDialogConstants.YES_ID);
- buttonLabelToId.put(IDialogConstants.CANCEL_LABEL, IDialogConstants.CANCEL_ID);
+ buttonLabelToId.put(IDialogConstants.NO_LABEL, IDialogConstants.NO_ID);
MessageDialogWithToggle dialog = MessageDialogWithToggle.open(MessageDialog.QUESTION, shell, LaunchConfigurationsMessages.PerspectiveManager_12, MessageFormat.format(message, args), null, false, DebugUIPlugin.getDefault().getPreferenceStore(), preferenceKey, SWT.NONE, buttonLabelToId);
boolean answer = (dialog.getReturnCode() == IDialogConstants.YES_ID);
synchronized (this) {

Back to the top