public class VizActionTree
extends java.lang.Object
Constructor and Description |
---|
VizActionTree(org.eclipse.jface.action.IAction action)
ActionTree constructor for child tree nodes that will not have a
menu.
|
VizActionTree(java.lang.String text)
ActionTree constructor for parent tree nodes that will get a menu.
|
Modifier and Type | Method and Description |
---|---|
void |
add(VizActionTree child)
Adds the specified child ActionTree to this node, if possible.
|
void |
dispose()
Disposes of any system resources held by this ActionTree node and all of
its descendants.
|
java.util.List<VizActionTree> |
getChildren()
This returns the ActionTree node's child nodes, or
null if
the node has no children. |
org.eclipse.jface.action.IContributionItem |
getContributionItem()
This returns a new, dynamic IContributionItem initialized with
this node's JFace Action.
|
void |
remove(VizActionTree child)
Removes the first occurrence of the specified child ActionTree to this
node, if possible.
|
void |
removeAll()
Removes all child ActionTrees.
|
void |
setEnabled(boolean enabled)
Enables or disables the ActionTree.
|
public VizActionTree(java.lang.String text)
text
- The text displayed by the Action's IContributionItem. This
will be seen on the MenuItem or ToolItem.public VizActionTree(org.eclipse.jface.action.IAction action)
action
- A developer-defined JFace Action.public void setEnabled(boolean enabled)
enabled
- Whether or not to enable the ActionTree.public void dispose()
public void add(VizActionTree child)
child
- The child ActionTree node to add.public void remove(VizActionTree child)
child
- The child ActionTree node to remove.public void removeAll()
public org.eclipse.jface.action.IContributionItem getContributionItem()
public java.util.List<VizActionTree> getChildren()
null
if
the node has no children.null
.