public class CoreEditPartFactory
extends java.lang.Object
implements org.eclipse.gef.EditPartFactory
HexagonalGridEditPart
s for the Grid
(nothing special is required to represent the core) and
CoreCellEditPart
s for the Cells.Constructor and Description |
---|
CoreEditPartFactory(IGridListener listener)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.gef.EditPart |
createEditPart(org.eclipse.gef.EditPart context,
java.lang.Object model)
Overrides the default behavior to connect Grids and Cells to their
corresponding EditParts (GridEditPart and CellEditPart).
|
public CoreEditPartFactory(IGridListener listener)
listener
- An IGridListener that listens for click/selection events for
the Cells.public org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context, java.lang.Object model)
createEditPart
in interface org.eclipse.gef.EditPartFactory