Class PasteDrawingsOperation
- java.lang.Object
-
- org.eclipse.core.commands.operations.AbstractOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
-
- com._1c.g5.v8.dt.moxel.ui.operations.PasteDrawingsOperation
-
- All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoableOperation
public class PasteDrawingsOperation extends ChangeCellsOperation
Operation of pasting selected drawings
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Drawing>
selectedDrawings
static int
STR_PROPERTIES_SHIFT
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
changeContentOrFormat, oldCells, positionHolder, selection, sizeHelper
-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Constructor Description PasteDrawingsOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, Selection selection, List<Drawing> selectedDrawings, boolean changeContentOrFormat, PositionHolder positionholder, SpreadsheetDocument document, MoxelDescriptor description)
Creates new instance ofPasteDrawingsOperation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
protected boolean
needCleaCache()
Check whether there is a need to clean cachevoid
performAction()
Выполнить действие.org.eclipse.core.runtime.IStatus
redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
org.eclipse.core.runtime.IStatus
undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
-
Methods inherited from class com._1c.g5.v8.dt.moxel.ui.operations.ChangeCellsOperation
updateCacheState
-
-
-
-
Field Detail
-
STR_PROPERTIES_SHIFT
public static final int STR_PROPERTIES_SHIFT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PasteDrawingsOperation
public PasteDrawingsOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, Selection selection, List<Drawing> selectedDrawings, boolean changeContentOrFormat, PositionHolder positionholder, SpreadsheetDocument document, MoxelDescriptor description)
Creates new instance ofPasteDrawingsOperation
- Parameters:
label
- operation labelundoContext
- undo contextsheet
-SheetAccessor
selection
-Selection
selectedDrawings
- list of selected drawingschangeContentOrFormat
- need change content or formatpositionholder
-PositionHolder
document
-SpreadsheetDocument
to be pasteddescription
-MoxelDescriptor
-
-
Method Detail
-
execute
public org.eclipse.core.runtime.IStatus execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
execute
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Overrides:
execute
in classChangeCellsOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
performAction
public void performAction()
Description copied from class:ChangeCellsOperation
Выполнить действие.- Overrides:
performAction
in classChangeCellsOperation
-
redo
public org.eclipse.core.runtime.IStatus redo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
redo
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Overrides:
redo
in classChangeCellsOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
undo
public org.eclipse.core.runtime.IStatus undo(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info) throws org.eclipse.core.commands.ExecutionException
- Specified by:
undo
in interfaceorg.eclipse.core.commands.operations.IUndoableOperation
- Overrides:
undo
in classChangeCellsOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
needCleaCache
protected boolean needCleaCache()
Description copied from class:ChangeCellsOperation
Check whether there is a need to clean cache- Overrides:
needCleaCache
in classChangeCellsOperation
- Returns:
- check result
-
-