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.PreserveFormatType
Get preserve format typegetSelection
(MoxelControl control) Get selected area to apply operation toprotected abstract boolean
Check 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:
true
if operation is insert operation,false
otherwise
-
getPreserveFormatType
Get preserve format type- Returns:
- preserve format type
-
getSelection
Get selected area to apply operation to- Parameters:
control
-MoxelControl
- Returns:
- list of
Selection
representing selected document areas
-