protected class AbstractOperation.Context extends Object
Constructor and Description |
---|
Context(OperationContext context,
E editPart)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
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 . |
public Context(OperationContext context, E editPart)
context
- OperationContext
.editPart
- AbstractOfficeFloorEditPart
.public E getEditPart()
AbstractOfficeFloorEditPart
.AbstractOfficeFloorEditPart
.public org.eclipse.draw2d.geometry.Point getLocation()
public void positionModel(Model model)
Model
.model
- Model
.getLocation()
public void execute(OfficeFloorCommand command)
OfficeFloorCommand
.command
- OfficeFloorCommand
.Copyright © 2005–2016. All rights reserved.