Class ActivateRolloutSearchCommand

All Implemented Interfaces:

public class ActivateRolloutSearchCommand extends AbstractToggleSearchCommand
Activates the RolloutSearch.
  • Constructor Details

    • ActivateRolloutSearchCommand

      public ActivateRolloutSearchCommand()
  • Method Details

    • canExecute

      protected boolean canExecute()
      Description copied from class: AbstractDocumentCommand
      Checks if this command can be executed.
      canExecute in class AbstractToggleSearchCommand
      true, if InjectedCommand.execute(java.util.Collection<java.lang.Object>) can be called, false else
    • 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

      protected 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.
      isSelected in class InjectedCommand
      the selected state
    • findRolloutSearch

      public RolloutSearch findRolloutSearch()
    • setPreserveSearch

      public void setPreserveSearch(boolean preserveSearch)
      Sets the flag that controls if the search is preserved if the document is changed for the underlying RolloutSearch
      preserveSearch - flag that controls if the search is preserved if the document is changed