org.eclipse.amp.escape.ascape.adapt
Class AscapePartTreeFactory
java.lang.Object
org.eclipse.amp.escape.ascape.adapt.AscapePartTreeFactory
public class AscapePartTreeFactory
- extends java.lang.Object
A factory for creating ScapePartTree objects.
Method Summary |
EditPart |
createEditPart(EditPart context,
java.lang.Object model)
|
protected EditPart |
getPartForElement(java.lang.Object model)
Maps an object to an EditPart. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
provider
public AscapeProvider provider
AscapePartTreeFactory
public AscapePartTreeFactory()
createEditPart
public EditPart createEditPart(EditPart context,
java.lang.Object model)
- Parameters:
context
- model
-
- Returns:
- See Also:
org.eclipse.gef.EditPartFactory#createEditPart(org.eclipse.gef.EditPart, java.lang.Object)
getPartForElement
protected EditPart getPartForElement(java.lang.Object model)
- Maps an object to an EditPart.
- Parameters:
model
- the model
- Returns:
- the part for element
- Throws:
java.lang.RuntimeException
- if no match was found (programming error)
Copyright (C) 2007-2009 Metascape, LLC, 2009 Miles Parker, 2006-2007 Argonne National Labs, and Contributors