Class AbstractBslModuleEventsHandler

  • All Implemented Interfaces:
    org.eclipse.core.commands.IHandler, org.eclipse.core.commands.IHandler2
    Direct Known Subclasses:
    BslModuleEventsHandler

    public abstract class AbstractBslModuleEventsHandler
    extends org.eclipse.core.commands.AbstractHandler
    Handler listener for add Event to Bsl module
    • Constructor Detail

      • AbstractBslModuleEventsHandler

        public AbstractBslModuleEventsHandler()
    • Method Detail

      • execute

        public final Object execute​(org.eclipse.core.commands.ExecutionEvent event)
                             throws org.eclipse.core.commands.ExecutionException
        Throws:
        org.eclipse.core.commands.ExecutionException
      • getPositionOfInsertionEvent

        protected abstract int getPositionOfInsertionEvent​(Module module,
                                                           int offset,
                                                           org.eclipse.jface.text.ITextViewer viewer)
        Defines offset of the inserting Event
        Parameters:
        module - current Bsl module
        offset - current cursor offset
        viewer - current ITextViewer
        Returns:
        offset of the inserting Event