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
Handler for 'Delete/Insert cells' commands
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(org.eclipse.core.commands.ExecutionEvent event) protected abstract DeleteInsertCellsOperation.PreserveFormatTypeGet preserve format typegetSelection(MoxelControl control) Get selected area to apply operation toprotected abstract booleanCheck if operation is 'Insert' operationMethods inherited from class com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
addHandlerListener, dispose, getControl, isEnabled, isHandled, removeHandlerListener
-
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:
trueif operation is insert operation,falseotherwise
-
getPreserveFormatType
Get preserve format type- Returns:
- preserve format type
-
getSelection
Get selected area to apply operation to- Parameters:
control-MoxelControl- Returns:
- list of
Selectionrepresenting selected document areas
-