Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2015-02-06 05:29:03 -0500
committerTobias Schwarz2015-02-06 05:29:03 -0500
commitcd1674a4ff43d1f2e9c8dc3c2b3691684b9c6056 (patch)
treed593cffee973d7adc67c6cb73a5d9e53d2518a3b
parentd8e9bca9a23517336c75684807149b23e6cac56d (diff)
downloadorg.eclipse.tcf-cd1674a4ff43d1f2e9c8dc3c2b3691684b9c6056.tar.gz
org.eclipse.tcf-cd1674a4ff43d1f2e9c8dc3c2b3691684b9c6056.tar.xz
org.eclipse.tcf-cd1674a4ff43d1f2e9c8dc3c2b3691684b9c6056.zip
SM: add possibility to store all results
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/dialogs/OptionalMessageDialog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/dialogs/OptionalMessageDialog.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/dialogs/OptionalMessageDialog.java
index ee98c6cd8..83bd20346 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/dialogs/OptionalMessageDialog.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.swt/src/org/eclipse/tcf/te/ui/jface/dialogs/OptionalMessageDialog.java
@@ -266,13 +266,17 @@ public class OptionalMessageDialog extends MessageDialogWithToggle {
int result = getDialogResult(key);
if (result < 0) {
result = super.open();
- if (getToggleState() && result >= 0 && result != IDialogConstants.CANCEL_ID) {
+ if (getToggleState() && storeResultOnToggleSelected(result)) {
setDialogResult(key, result);
}
}
return result;
}
+ protected boolean storeResultOnToggleSelected(int result) {
+ return result >= 0 && result != IDialogConstants.CANCEL_ID;
+ }
+
/* (non-Javadoc)
* @see org.eclipse.jface.dialogs.MessageDialogWithToggle#setToggleButton(org.eclipse.swt.widgets.Button)
*/

Back to the top