Package com._1c.g5.v8.dt.bsl.ui.menu
Class AbstractBslWrapInRegionHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslWrapInRegionHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
- Direct Known Subclasses:
BslWrapInRegionHandler
public abstract class AbstractBslWrapInRegionHandler extends org.eclipse.core.commands.AbstractHandler
Handler listener for Surround With region preprocessor
-
-
Field Summary
Fields Modifier and Type Field Description protected BslGeneratorMultiLangProposals
bslGenProp
protected BslGrammarAccess
bslGrammar
protected IndentTextEditorProvider
indentProvider
protected BslProposalProvider
proposalProvider
-
Constructor Summary
Constructors Constructor Description AbstractBslWrapInRegionHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
protected abstract org.eclipse.xtext.util.Pair<Boolean,String>
validateSelectRegion(Module module, int startPos, int endPos)
Check for valid selection area of the module-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Field Detail
-
proposalProvider
protected BslProposalProvider proposalProvider
-
bslGenProp
protected BslGeneratorMultiLangProposals bslGenProp
-
bslGrammar
protected BslGrammarAccess bslGrammar
-
indentProvider
protected IndentTextEditorProvider indentProvider
-
-
Method Detail
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
validateSelectRegion
protected abstract org.eclipse.xtext.util.Pair<Boolean,String> validateSelectRegion(Module module, int startPos, int endPos)
Check for valid selection area of the module- Parameters:
module
- currentModule
startPos
- start position of selectionendPos
- end position of selection- Returns:
- pair of value -
1) flag -true
if selection is valid
2) error message, can benull
-
-