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

java.lang.Object
  extended by net.officefloor.eclipse.common.action.AbstractOperation<E>
      extended by net.officefloor.eclipse.officefloor.operations.AbstractOfficeFloorChangeOperation<E>
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AddDeployedOfficeOperation, AddOfficeFloorInputManagedObjectOperation, AddOfficeFloorManagedObjectOperation, AddOfficeFloorManagedObjectSourceOperation, AddOfficeFloorTeamOperation, RefactorDeployedOfficeFloorChangeOperation, RescopeOfficeFloorManagedObjectOperation

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

Abstract OfficeFloorChanges Operation.

Author:
Daniel Sagenschneider

Nested Class Summary
 
Nested classes/interfaces inherited from class net.officefloor.eclipse.common.action.AbstractOperation
AbstractOperation.Context
 
Constructor Summary
AbstractOfficeFloorChangeOperation(String actionText, Class<E> editPartType, OfficeFloorChanges officeFloorChanges)
          Initiate.
 
Method Summary
protected abstract  Change<?> getChange(OfficeFloorChanges 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

AbstractOfficeFloorChangeOperation

public AbstractOfficeFloorChangeOperation(String actionText,
                                          Class<E> editPartType,
                                          OfficeFloorChanges officeFloorChanges)
Initiate.

Parameters:
actionText - Action text.
editPartType - AbstractOfficeFloorEditPart type that this Operation may be carried out on.
officeFloorChanges - OfficeFloorChanges.
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(OfficeFloorChanges changes,
                                       AbstractOperation.Context context)
Obtains the Change.

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


Copyright © 2005-2013. All Rights Reserved.