Class RenameAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, javax.swing.event.TreeSelectionListener

    public class RenameAction
    extends TagTreeAction
    See Also:
    Serialized Form
    • Field Detail

      • VALUE_SHORT_DESCRIPTION

        public static final java.lang.String VALUE_SHORT_DESCRIPTION
        See Also:
        Constant Field Values
      • VALUE_LONG_DESCRIPTION

        public static final java.lang.String VALUE_LONG_DESCRIPTION
        See Also:
        Constant Field Values
    • Constructor Detail

      • RenameAction

        public RenameAction​(DesignerContext context,
                            javax.swing.JTree tree)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
      • shouldBeEnabled

        protected boolean shouldBeEnabled​(BrowseTreeNode node)
        Description copied from class: TagTreeAction
        Called for each selected node that isn't a meta node. The action will become enabled only if all selected nodes are not meta nodes and this function returns true for each node.
        Specified by:
        shouldBeEnabled in class TagTreeAction
      • maxSelectionCount

        protected int maxSelectionCount()
        Specified by:
        maxSelectionCount in class TagTreeAction
        Returns:
        the maximum selection that could cause this action to be enabled