Class DeleteCommandHandler
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.handlers.BaseHandler
-
- com._1c.g5.v8.dt.moxel.ui.handlers.DeleteInsertCellsHandler
-
- com._1c.g5.v8.dt.moxel.ui.handlers.DeleteCommandHandler
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
public class DeleteCommandHandler extends DeleteInsertCellsHandler implements org.eclipse.core.commands.IHandler
Base handler for 'Delete' commands
-
-
Constructor Summary
Constructors Constructor Description DeleteCommandHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(org.eclipse.core.commands.ExecutionEvent event)protected DeleteInsertCellsOperation.PreserveFormatTypegetPreserveFormatType()Get preserve format typeprotected List<Selection>getSelection(MoxelControl control)Get selected area to apply operation toprotected booleanisInsertOperation()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
- Specified by:
executein interfaceorg.eclipse.core.commands.IHandler- Overrides:
executein classDeleteInsertCellsHandler- Throws:
org.eclipse.core.commands.ExecutionException
-
isInsertOperation
protected boolean isInsertOperation()
Description copied from class:DeleteInsertCellsHandlerCheck if operation is 'Insert' operation- Specified by:
isInsertOperationin classDeleteInsertCellsHandler- Returns:
trueif operation is insert operation,falseotherwise
-
getSelection
protected List<Selection> getSelection(MoxelControl control)
Description copied from class:DeleteInsertCellsHandlerGet selected area to apply operation to- Specified by:
getSelectionin classDeleteInsertCellsHandler- Parameters:
control-MoxelControl- Returns:
- list of
Selectionrepresenting selected document areas
-
getPreserveFormatType
protected DeleteInsertCellsOperation.PreserveFormatType getPreserveFormatType()
Description copied from class:DeleteInsertCellsHandlerGet preserve format type- Specified by:
getPreserveFormatTypein classDeleteInsertCellsHandler- Returns:
- preserve format type
-
-