Package com._1c.g5.v8.dt.qw.ui.handlers
Class OpenQueryModifierHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.qw.ui.handlers.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 Summary
Constructors Constructor Description OpenQueryModifierHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.jface.dialogs.Dialog
createDialog(QlEditor editor, org.eclipse.swt.widgets.Shell shell)
Create query DialogObject
execute(org.eclipse.core.commands.ExecutionEvent event)
protected IBmNavigatorOrderIndexManager
getBmNavigatorOrderIndexManager()
Returns service to getIBmNavigatorOrderIndexProvider
.protected IConfigurationProvider
getConfigurationProvider()
Returns service to get configuration from eObject.protected abstract String
getText(org.eclipse.jface.dialogs.Dialog dialog)
Get query text from Dialog-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
getBmNavigatorOrderIndexManager
protected IBmNavigatorOrderIndexManager getBmNavigatorOrderIndexManager()
Returns service to getIBmNavigatorOrderIndexProvider
.- Returns:
- service to get
IBmNavigatorOrderIndexProvider
. Cannot benull
.
-
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 benull
shell
- - current shell, cannot benull
- 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 benull
- Returns:
- new query text, cannot be
null
-
-