Class CutDrawingsOperation

  • All Implemented Interfaces:
    org.eclipse.core.commands.operations.IUndoableOperation

    public class CutDrawingsOperation
    extends CopyDrawingsOperation
    'Cut selected drawings' operation.
    • 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)  
      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 org.eclipse.core.commands.operations.AbstractOperation

        addContext, canExecute, canRedo, canUndo, dispose, getContexts, getLabel, hasContext, removeContext, setLabel, toString
    • Constructor Detail

      • CutDrawingsOperation

        public CutDrawingsOperation​(String label,
                                    org.eclipse.core.commands.operations.IUndoContext undoContext,
                                    SheetAccessor sheet,
                                    List<Drawing> selectedDrawings,
                                    PositionHolder positionHolder)
        Cut drawings
        Parameters:
        label - operation label
        undoContext - undo context
        sheet - SheetAccessor
        selectedDrawings - list of selected drawings
        positionHolder - PositionHolder
    • 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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Overrides:
        execute in class CopyDrawingsOperation
        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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Overrides:
        undo in class CopyDrawingsOperation
        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 interface org.eclipse.core.commands.operations.IUndoableOperation
        Overrides:
        redo in class CopyDrawingsOperation
        Throws:
        org.eclipse.core.commands.ExecutionException