Package com._1c.g5.v8.dt.bsl.ui.menu
Class BslWrapInRegionHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslWrapInRegionHandler
-
- com._1c.g5.v8.dt.bsl.ui.menu.BslWrapInRegionHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
- Direct Known Subclasses:
TestingBslWrapInRegionHandler
public class BslWrapInRegionHandler extends AbstractBslWrapInRegionHandler
Implementation ofAbstractBslWrapInRegionHandler
with special strategy for validation of selection area
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslWrapInRegionHandler
bslGenProp, bslGrammar, indentProvider, proposalProvider
-
-
Constructor Summary
Constructors Constructor Description BslWrapInRegionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslWrapInRegionHandler
execute
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
validateSelectRegion
protected org.eclipse.xtext.util.Pair<Boolean,String> validateSelectRegion(Module module, int startPos, int endPos)
Description copied from class:AbstractBslWrapInRegionHandler
Check for valid selection area of the module- Specified by:
validateSelectRegion
in classAbstractBslWrapInRegionHandler
- 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
-
-