net.officefloor.eclipse.common.action
Class AbstractOperation.Context

java.lang.Object
  extended by net.officefloor.eclipse.common.action.AbstractOperation.Context
Enclosing class:
AbstractOperation<E extends org.eclipse.gef.EditPart>

protected class AbstractOperation.Context
extends Object

Context.


Constructor Summary
AbstractOperation.Context(OperationContext context, E editPart)
          Initiate.
 
Method Summary
 void execute(OfficeFloorCommand command)
          Executes the OfficeFloorCommand.
 E getEditPart()
          Obtains the AbstractOfficeFloorEditPart.
 org.eclipse.draw2d.geometry.Point getLocation()
          Obtains the location.
 void positionModel(Model model)
          Convenience method to load the location onto the Model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractOperation.Context

public AbstractOperation.Context(OperationContext context,
                                 E editPart)
Initiate.

Parameters:
context - OperationContext.
editPart - AbstractOfficeFloorEditPart.
Method Detail

getEditPart

public E getEditPart()
Obtains the AbstractOfficeFloorEditPart.

Returns:
AbstractOfficeFloorEditPart.

getLocation

public org.eclipse.draw2d.geometry.Point getLocation()
Obtains the location.

Returns:
Location.

positionModel

public void positionModel(Model model)
Convenience method to load the location onto the Model.

Parameters:
model - Model.
See Also:
getLocation()

execute

public void execute(OfficeFloorCommand command)
Executes the OfficeFloorCommand.

Parameters:
command - OfficeFloorCommand.


Copyright © 2005-2013. All Rights Reserved.