Class SearchAction

  • All Implemented Interfaces:
    IKeyAction

    public class SearchAction
    extends Object
    implements IKeyAction
    An action for opening a Find dialog on a NatTable. Supports both modal and non-modal (i.e., sharable) Find dialog behavior.
    • Constructor Detail

      • SearchAction

        public SearchAction()
        Constructs an action with a modal Find dialog.
      • SearchAction

        public SearchAction​(NatTable natTable,
                            org.eclipse.jface.dialogs.IDialogSettings dialogSettings)
        Constructs an action with a non-modal (i.e., sharable) Find dialog.
        Parameters:
        natTable - The NatTable instance to perform the search action on.
        dialogSettings - The dialog settings that should be used to create the search dialog.
    • Method Detail

      • setActiveContext

        protected void setActiveContext()
      • run

        public void run​(NatTable natTable,
                        org.eclipse.swt.events.KeyEvent event)
        Specified by:
        run in interface IKeyAction