Class UngroupEntitiesOperation

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

    public class UngroupEntitiesOperation
    extends AbstractDiagramEntitiesOperation
    Instance of this class represents "Ungroup entities" operation.
    • Constructor Detail

      • UngroupEntitiesOperation

        public UngroupEntitiesOperation​(Collection<IErdEntity> ungroupedEntities,
                                        Collection<IErdEntity> groups,
                                        IErdDiagramController controller,
                                        DiagramTabItem tab,
                                        boolean isExecuted)
        Constructor
        Parameters:
        ungroupedEntities - - ungrouped entities. Can't be null.
        groups - - ungrouped groups. Can't be null.
        controller - - controller where group was located. Can't be null.
        tab - - tab where group was located. Can't be null.
        isExecuted - - true if operation already executed.
    • Method Detail

      • canExecute

        public boolean canExecute()
      • canRedo

        public boolean canRedo()
      • canUndo

        public boolean canUndo()
      • 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
        Throws:
        org.eclipse.core.commands.ExecutionException
      • getLabel

        public String getLabel()
      • 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
        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
        Throws:
        org.eclipse.core.commands.ExecutionException