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

java.lang.Object
  extended by net.officefloor.eclipse.common.action.AbstractOperation<E>
      extended by net.officefloor.eclipse.section.operations.AbstractSectionChangeOperation<E>
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AddExternalFlowOperation, AddExternalManagedObjectOperation, AddSectionManagedObjectOperation, AddSectionManagedObjectSourceOperation, AddSubSectionOperation, ToggleSubSectionInputPublicOperation

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

Abstract SectionChanges Operation.

Author:
Daniel Sagenschneider

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

AbstractSectionChangeOperation

public AbstractSectionChangeOperation(String actionText,
                                      Class<E> editPartType,
                                      SectionChanges sectionChanges)
Initiate.

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

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


Copyright © 2005-2013. All Rights Reserved.