Class CompositeOperation
- 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.CompositeOperation
-
- All Implemented Interfaces:
org.eclipse.core.commands.operations.IUndoableOperation
public class CompositeOperation extends BaseOperation
Composite operation
-
-
Field Summary
Fields Modifier and Type Field Description protected MoxelControl
control
Moxel control-
Fields inherited from class com._1c.g5.v8.dt.moxel.ui.operations.BaseOperation
sheet
-
-
Constructor Summary
Constructors Constructor Description CompositeOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet)
Creates new instance ofCompositeOperation
.CompositeOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, MoxelControl control)
Creates new instance ofCompositeOperation
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
Add operation for execution.org.eclipse.core.runtime.IStatus
execute(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.IAdaptable info)
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)
-
-
-
Field Detail
-
control
protected MoxelControl control
Moxel control
-
-
Constructor Detail
-
CompositeOperation
public CompositeOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet)
Creates new instance ofCompositeOperation
. In case of using this constructor, selection will not be swapped while performing undo/redo.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
, must not benull
-
CompositeOperation
public CompositeOperation(String label, org.eclipse.core.commands.operations.IUndoContext undoContext, SheetAccessor sheet, MoxelControl control)
Creates new instance ofCompositeOperation
. In case of using this constructor, selection will be swapped while performing undo/redo.- Parameters:
label
- operation label, must not benull
undoContext
- undo context, may benull
sheet
-SheetAccessor
, must not benull
control
-MoxelControl
, may benull
. In case of non-null value selection will be swapped while performing undo/redo
-
-
Method Detail
-
addOperation
public void addOperation(org.eclipse.core.commands.operations.IUndoableOperation operation)
Add operation for execution.- Parameters:
operation
- operation to be added
-
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
- Specified by:
execute
in classorg.eclipse.core.commands.operations.AbstractOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
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
- Specified by:
redo
in classorg.eclipse.core.commands.operations.AbstractOperation
- 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
- Specified by:
undo
in classorg.eclipse.core.commands.operations.AbstractOperation
- Throws:
org.eclipse.core.commands.ExecutionException
-
-