public class EditTagAction extends TagAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VALUE_COMMAND |
Constructor and Description |
---|
EditTagAction(DesignerContext context,
javax.swing.JTree tree) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
boolean |
executeEdit(boolean selectedOnly)
Invokes the edit on the currently selected tags, and returns true if the edit was possible.
|
protected int |
maxSelectionCount()
Returns the maximum selection that could cause this action to be enabled
|
protected boolean |
shouldBeEnabled(TagPathTreeNode node)
Called for each selected node that isn't a meta node.
|
protected boolean |
shouldBeEnabled(TagPathTreeNode[] nodes) |
static boolean |
validFor(DesignerContext context,
TagPathTreeNode node) |
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
findProvider, getNode, getProvider, getTagManager, reload, reload, setTree
public static final java.lang.String VALUE_COMMAND
public EditTagAction(DesignerContext context, javax.swing.JTree tree)
public void actionPerformed(java.awt.event.ActionEvent e)
public boolean executeEdit(boolean selectedOnly)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged
in interface javax.swing.event.TreeSelectionListener
valueChanged
in class TagAction
protected boolean shouldBeEnabled(TagPathTreeNode[] nodes)
shouldBeEnabled
in class TagAction
protected boolean shouldBeEnabled(TagPathTreeNode node)
TagAction
shouldBeEnabled
in class TagAction
public static boolean validFor(DesignerContext context, TagPathTreeNode node)
protected int maxSelectionCount()
TagAction
maxSelectionCount
in class TagAction