Package org.eclipse.ui.internal
Class ActionSetManager
java.lang.Object
org.eclipse.ui.internal.ActionSetManager
Maintains a reference counted set of action sets, with a visibility mask.
This is used to determine the visibility of actions in a workbench page. In a
workbench page, there may be may be many conditions that can cause an action
set to become visible (such as the active part, the active editor, the
default visibility of the action, the properties of the perspective, etc.)
The user can also explicitly mask off particular action sets in each
perspective.
The reference count indicates how many conditions have requested that the actions be active and the mask indicates whether or not the set was disabled by the user.
- Since:
- 3.1
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
change
(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor, int changeType) void
hideAction
(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) void
maskAction
(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) void
void
showAction
(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) void
unmaskAction
(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor)
-
Field Details
-
PROP_VISIBLE
public static final int PROP_VISIBLE- See Also:
-
PROP_HIDDEN
public static final int PROP_HIDDEN- See Also:
-
CHANGE_MASK
public static final int CHANGE_MASK- See Also:
-
CHANGE_UNMASK
public static final int CHANGE_UNMASK- See Also:
-
CHANGE_SHOW
public static final int CHANGE_SHOW- See Also:
-
CHANGE_HIDE
public static final int CHANGE_HIDE- See Also:
-
-
Constructor Details
-
ActionSetManager
-
-
Method Details
-
addListener
-
removeListener
-
showAction
public void showAction(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) -
hideAction
public void hideAction(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) -
maskAction
public void maskAction(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) -
unmaskAction
public void unmaskAction(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor) -
getVisibleItems
-
change
public void change(org.eclipse.ui.internal.registry.IActionSetDescriptor descriptor, int changeType)
-