Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2003-06-10 18:48:39 +0000
committerDarin Wright2003-06-10 18:48:39 +0000
commit4994fd063bce48684afce9c27aa1635e42bf88c5 (patch)
tree3b4908b034b874d712accf054f079d9cea7e5de3 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
parentb25a84f71cbbeee60fd97bfe8141aed99cd35244 (diff)
downloadeclipse.platform.debug-4994fd063bce48684afce9c27aa1635e42bf88c5.tar.gz
eclipse.platform.debug-4994fd063bce48684afce9c27aa1635e42bf88c5.tar.xz
eclipse.platform.debug-4994fd063bce48684afce9c27aa1635e42bf88c5.zip
bug 38722 - Need restoration of preference store for those actions that are enabled only
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
index d6e2485a4..d79f540e4 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
@@ -599,15 +599,16 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
}
/**
- * Restires the persisted checked state of the specified action that was
- * stored in preferences.
+ * Restores the persisted checked state of the specified action that was
+ * stored in preferences. If the action is disabled, its persisted state
+ * is not restored (because a disabled action cannot be run).
*
* @param action the action whose checked state will be restored
* @since 2.1
*/
protected void initActionState(IAction action) {
String id = action.getId();
- if (id != null) {
+ if (id != null && action.isEnabled()) {
String prefKey = generatePreferenceKey(action);
boolean checked = getPreferenceStore().getBoolean(prefKey);
action.setChecked(checked);

Back to the top