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 -
Method Summary
Modifier and TypeMethodDescriptionexecute
(org.eclipse.core.commands.ExecutionEvent event) Get preserve format typegetSelection
(MoxelControl control) Get selected area to apply operation toprotected 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.commands.IHandler
addHandlerListener, dispose, isEnabled, isHandled, removeHandlerListener
-
Constructor Details
-
DeleteCommandHandler
public DeleteCommandHandler()
-
-
Method Details
-
execute
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException - Specified by:
execute
in interfaceorg.eclipse.core.commands.IHandler
- Overrides:
execute
in classDeleteInsertCellsHandler
- Throws:
org.eclipse.core.commands.ExecutionException
-
isInsertOperation
protected boolean isInsertOperation()Description copied from class:DeleteInsertCellsHandler
Check if operation is 'Insert' operation- Specified by:
isInsertOperation
in classDeleteInsertCellsHandler
- Returns:
true
if operation is insert operation,false
otherwise
-
getSelection
Description copied from class:DeleteInsertCellsHandler
Get selected area to apply operation to- Specified by:
getSelection
in classDeleteInsertCellsHandler
- Parameters:
control
-MoxelControl
- Returns:
- list of
Selection
representing selected document areas
-
getPreserveFormatType
Description copied from class:DeleteInsertCellsHandler
Get preserve format type- Specified by:
getPreserveFormatType
in classDeleteInsertCellsHandler
- Returns:
- preserve format type
-