Class OpenQueryModifierHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
    Direct Known Subclasses:
    OpenQueryEditorHandler, OpenQueryWizardHandler

    public abstract class OpenQueryModifierHandler
    extends org.eclipse.core.commands.AbstractHandler
    Base class for query modifiers handlers
    • Constructor Detail

      • OpenQueryModifierHandler

        public OpenQueryModifierHandler()
    • Method Detail

      • execute

        public Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                       throws org.eclipse.core.commands.ExecutionException
        Throws:
        org.eclipse.core.commands.ExecutionException
      • getConfigurationProvider

        protected IConfigurationProvider getConfigurationProvider()
        Returns service to get configuration from eObject.
        Returns:
        service to get configuration from eObject. Cannot be null.
      • createDialog

        protected abstract org.eclipse.jface.dialogs.Dialog createDialog​(QlEditor editor,
                                                                         org.eclipse.swt.widgets.Shell shell)
        Create query Dialog
        Parameters:
        editor - - QlEditor, cannot be null
        shell - - current shell, cannot be null
        Returns:
        dialog, cannot be null
      • getText

        protected abstract String getText​(org.eclipse.jface.dialogs.Dialog dialog)
        Get query text from Dialog
        Parameters:
        dialog - - QueryTextEditDialog, cannot be null
        Returns:
        new query text, cannot be null