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 Summary
Constructors Constructor Description DeleteInsertCellsHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
execute(org.eclipse.core.commands.ExecutionEvent event)
protected abstract DeleteInsertCellsOperation.PreserveFormatType
getPreserveFormatType()
Get preserve format typeprotected abstract List<Selection>
getSelection(MoxelControl control)
Get selected area to apply operation toprotected abstract boolean
isInsertOperation()
Check if operation is 'Insert' operation-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
addHandlerListener, dispose, getControl, isEnabled, isHandled, removeHandlerListener
-
-
-
-
Method Detail
-
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
-
-