Class DeleteInsertCellsHandler

java.lang.Object
com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
com._1c.g5.v8.dt.moxel.ui.handlers.DeleteInsertCellsHandler
All Implemented Interfaces:
org.eclipse.core.commands.IHandler
Direct Known Subclasses:
DeleteCommandHandler, DeleteInsertColumnsHandler, DeleteInsertRowsHandler, InsertCellsHandler

public abstract class DeleteInsertCellsHandler extends BaseHandler
Handler for 'Delete/Insert cells' commands
  • Constructor Details

    • DeleteInsertCellsHandler

      public DeleteInsertCellsHandler()
  • Method Details

    • execute

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

      protected abstract boolean isInsertOperation()
      Check if operation is 'Insert' operation
      Returns:
      true if operation is insert operation, false otherwise
    • getPreserveFormatType

      protected abstract DeleteInsertCellsOperation.PreserveFormatType getPreserveFormatType()
      Get preserve format type
      Returns:
      preserve format type
    • getSelection

      protected abstract List<Selection> getSelection(MoxelControl control)
      Get selected area to apply operation to
      Parameters:
      control - MoxelControl
      Returns:
      list of Selection representing selected document areas