net.officefloor.eclipse.desk.operations
Class AbstractDeskChangeOperation<E extends org.eclipse.gef.EditPart>

java.lang.Object
  extended by net.officefloor.eclipse.common.action.AbstractOperation<E>
      extended by net.officefloor.eclipse.desk.operations.AbstractDeskChangeOperation<E>
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AddDeskManagedObjectOperation, AddDeskManagedObjectSourceOperation, AddExternalFlowOperation, AddExternalManagedObjectOperation, AddWorkOperation, CreateTaskFromWorkTaskOperation, DeleteExternalFlowOperation, DeleteExternalManagedObjectOperation, DeleteTaskOperation, DeleteWorkOperation, RefactorWorkOperation, ToggleTaskObjectParameterOperation, ToggleTaskPublicOperation

public abstract class AbstractDeskChangeOperation<E extends org.eclipse.gef.EditPart>
extends AbstractOperation<E>

Abstract DeskChanges Operation.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.eclipse.common.action.AbstractOperation
AbstractOperation.Context
 
Constructor Summary
AbstractDeskChangeOperation(String actionText, Class<E> editPartType, DeskChanges deskChanges)
          Initiate.
 
Method Summary
protected abstract  Change<?> getChange(DeskChanges changes, AbstractOperation.Context context)
          Obtains the Change.
protected  void perform(AbstractOperation.Context context)
          Performs the Operation on the particular AbstractOfficeFloorEditPart.
 
Methods inherited from class net.officefloor.eclipse.common.action.AbstractOperation
getActionText, isApplicable, isAssignable, perform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDeskChangeOperation

public AbstractDeskChangeOperation(String actionText,
                                   Class<E> editPartType,
                                   DeskChanges deskChanges)
Initiate.

Parameters:
actionText - Action text.
editPartType - AbstractOfficeFloorEditPart type that this Operation may be carried out on.
deskChanges - DeskChanges.
Method Detail

perform

protected void perform(AbstractOperation.Context context)
Description copied from class: AbstractOperation
Performs the Operation on the particular AbstractOfficeFloorEditPart.

Specified by:
perform in class AbstractOperation<E extends org.eclipse.gef.EditPart>
Parameters:
context - AbstractOperation.Context.

getChange

protected abstract Change<?> getChange(DeskChanges changes,
                                       AbstractOperation.Context context)
Obtains the Change.

Parameters:
changes - DeskChanges.
context - Context.
Returns:
Change.


Copyright © 2005-2013. All Rights Reserved.