Class AnnotationVisibilityCommand

All Implemented Interfaces:
Command

public class AnnotationVisibilityCommand extends AbstractAnnotationCommand
  • Constructor Details

    • AnnotationVisibilityCommand

      public AnnotationVisibilityCommand()
  • Method Details

    • execute

      protected void execute()
      Description copied from class: InjectedCommand
      This method is called in order to execute the command. It is only called, after the arguments have been validated and injected and only if InjectedCommand.canExecute() has returned true.
      Specified by:
      execute in class InjectedCommand
    • isSelected

      public boolean isSelected()
      Description copied from class: InjectedCommand
      Returns the selected state of this command. This is typically used only for commands with a meaningful selection state.
      Overrides:
      isSelected in class InjectedCommand
      Returns:
      the selected state
    • canExecute

      protected boolean canExecute()
      Description copied from class: AbstractDocumentCommand
      Checks if this command can be executed.
      Overrides:
      canExecute in class AbstractAnnotationCommand
      Returns:
      true, if InjectedCommand.execute(java.util.Collection<java.lang.Object>) can be called, false else
    • setTypeNamesFromString

      public void setTypeNamesFromString(String typeNames)
    • setTypeNames

      public void setTypeNames(ArrayList<String> typeNames)
    • setTypeNames

      public void setTypeNames(String... typeNames)
    • toggleAnnotationVisibility

      protected void toggleAnnotationVisibility()
      Toggles visibility of annotations described by given class
    • getAnnotationTypes

      protected Collection<AnnotationFactory> getAnnotationTypes()
      Tries to retrieve the toggle mode value from command parameters at given parameter index
      Returns:
      found mode or -1, if the parameter is not set or set to an invalid value