diff options
author | Jared Burns | 2005-02-18 17:11:53 +0000 |
---|---|---|
committer | Jared Burns | 2005-02-18 17:11:53 +0000 |
commit | 5c78c574079c8cda263e95b489ee81e3dcc59856 (patch) | |
tree | e77f194839e896b7ff723d89aa2db7198f3b40cf /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java | |
parent | 992e685c9d3cddbc89c518563af061e529ef765e (diff) | |
download | eclipse.platform.debug-5c78c574079c8cda263e95b489ee81e3dcc59856.tar.gz eclipse.platform.debug-5c78c574079c8cda263e95b489ee81e3dcc59856.tar.xz eclipse.platform.debug-5c78c574079c8cda263e95b489ee81e3dcc59856.zip |
Bug 82273 - Logical structures get confused by object hierarchy
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java index 7dd0b8adc..67f2d18a1 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/SelectLogicalStructureAction.java @@ -10,9 +10,9 @@ *******************************************************************************/ package org.eclipse.debug.internal.ui.views.variables; +import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.ILogicalStructureType; import org.eclipse.debug.core.model.IValue; -import org.eclipse.debug.internal.core.LogicalStructureManager; import org.eclipse.jface.action.Action; import org.eclipse.jface.action.IAction; import org.eclipse.swt.custom.BusyIndicator; @@ -30,9 +30,10 @@ public class SelectLogicalStructureAction extends Action { /** * * @param view Variables view - * @param group group of applicable structures + * @param type the type that this action will turn on/off * @param value the value for which logical structures are to be chosen - * @param index the offset into the given group that this action enables + * @param availableTypes the set of logical structure types that are being offered + * to the user in addition to the type controlled by this action */ public SelectLogicalStructureAction(VariablesView view, ILogicalStructureType type, IValue value, ILogicalStructureType[] availableTypes) { super(type.getDescription(value), IAction.AS_CHECK_BOX); @@ -60,7 +61,7 @@ public class SelectLogicalStructureAction extends Action { if (isChecked()) { type= fType; } - LogicalStructureManager.getDefault().setEnabledType(fAvailableTypes, type); + DebugPlugin.setSelectedStructureType(fAvailableTypes, type); getView().getViewer().refresh(); } }); |