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
Implementation of
AbstractBslWrapInRegionHandler 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 -
Method Summary
Modifier and TypeMethodDescriptionvalidateSelectRegion(Module module, int startPos, int endPos) Check for valid selection area of the moduleMethods inherited from class com._1c.g5.v8.dt.bsl.ui.menu.AbstractBslWrapInRegionHandler
executeMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
BslWrapInRegionHandler
public BslWrapInRegionHandler()
-
-
Method Details
-
validateSelectRegion
protected org.eclipse.xtext.util.Pair<Boolean,String> validateSelectRegion(Module module, int startPos, int endPos) Description copied from class:AbstractBslWrapInRegionHandlerCheck for valid selection area of the module- Specified by:
validateSelectRegionin classAbstractBslWrapInRegionHandler- Parameters:
module- currentModulestartPos- start position of selectionendPos- end position of selection- Returns:
- pair of value -
1) flag -trueif selection is valid
2) error message, can benull
-