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 of AbstractBslWrapInRegionHandler with special strategy for validation of selection area
  • 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: AbstractBslWrapInRegionHandler
      Check for valid selection area of the module
      Specified by:
      validateSelectRegion in class AbstractBslWrapInRegionHandler
      Parameters:
      module - current Module
      startPos - start position of selection
      endPos - end position of selection
      Returns:
      pair of value -
      1) flag - true if selection is valid
      2) error message, can be null