Class AbstractFindInFilesAction

    • Constructor Detail

      • AbstractFindInFilesAction

        public AbstractFindInFilesAction()
        Initializes the action.
    • Method Detail

      • setOwner

        public void setOwner​(FindInFilesPanel value)
        Sets the owning panel.
        Parameters:
        value - the owner
      • getOwner

        public FindInFilesPanel getOwner()
        Returns the owning panel.
        Returns:
        the owner
      • getMenuItemText

        protected abstract String getMenuItemText()
        Returns the text for the menu item.
        Returns:
        the text
      • doUpdate

        protected abstract void doUpdate()
        Updates the action with the current state of the owner.
      • update

        public void update()
        Updates the action with the current state of the owner.
      • compareTo

        public int compareTo​(AbstractFindInFilesAction o)
        Compares with the other action using the menu item text.
        Specified by:
        compareTo in interface Comparable<AbstractFindInFilesAction>
        Parameters:
        o - the other action
        Returns:
        less than zero, zero, or greater than zero if the menu item text is smaller, equal to, or greater than the other one
      • equals

        public boolean equals​(Object obj)
        Checks whether the two actions are the same (using the menu item text).
        Overrides:
        equals in class Object
        Parameters:
        obj - the action to check
        Returns:
        true if the same menu item text