Package org.eclipse.gef
Interface EditPartFactory
-
- All Known Implementing Classes:
PaletteEditPartFactory
public interface EditPartFactory
A factory for creating new EditParts.EditPartViewers
can be configured with anEditPartFactory
. Whenever anEditPart
in that viewer needs to create another EditPart, it can use the Viewer's factory. The factory is also used by the viewer wheneverEditPartViewer.setContents(Object)
is called.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EditPart
createEditPart(EditPart context, java.lang.Object model)
Creates a new EditPart given the specified context and model.
-
-
-
Method Detail
-
createEditPart
EditPart createEditPart(EditPart context, java.lang.Object model)
Creates a new EditPart given the specified context and model.- Parameters:
context
- The context in which the EditPart is being created, such as its parent.model
- the model of the EditPart being created- Returns:
- EditPart the new EditPart
-
-