public class NewTagAction extends TagAction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VALUE_COMMAND |
Constructor and Description |
---|
NewTagAction(DesignerContext context,
javax.swing.JTree tree,
TagType tagType,
javax.swing.Icon icon) |
NewTagAction(DesignerContext context,
javax.swing.JTree tree,
TagType tagType,
javax.swing.Icon icon,
java.lang.String baseKey) |
NewTagAction(DesignerContext context,
javax.swing.JTree tree,
TagType tagType,
javax.swing.Icon icon,
java.lang.String name,
java.lang.String desc) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
protected TagDefinition |
createTagForType() |
protected int |
maxSelectionCount()
Returns the maximum selection that could cause this action to be enabled
|
void |
setSelectedPathAffectsEnabled(boolean value)
Sets whether the currently selected path affects enabled state for UDTs vs.
|
protected boolean |
shouldBeEnabled(TagPathTreeNode node)
Called for each selected node that isn't a meta node.
|
findProvider, getNode, getTagManager, reload, reload, setTree, shouldBeEnabled, valueChanged
public static final java.lang.String VALUE_COMMAND
public NewTagAction(DesignerContext context, javax.swing.JTree tree, TagType tagType, javax.swing.Icon icon)
public NewTagAction(DesignerContext context, javax.swing.JTree tree, TagType tagType, javax.swing.Icon icon, java.lang.String baseKey)
public NewTagAction(DesignerContext context, javax.swing.JTree tree, TagType tagType, javax.swing.Icon icon, java.lang.String name, java.lang.String desc)
public void setSelectedPathAffectsEnabled(boolean value)
value
- protected TagDefinition createTagForType()
public void actionPerformed(java.awt.event.ActionEvent e)
protected int maxSelectionCount()
TagAction
maxSelectionCount
in class TagAction
protected boolean shouldBeEnabled(TagPathTreeNode node)
TagAction
shouldBeEnabled
in class TagAction