uk.ac.kcl.cch.jb.pliny.imageRes
Class ImageEditorPartFactory
java.lang.Object
uk.ac.kcl.cch.jb.pliny.factories.PlinyGEFEditFactory
uk.ac.kcl.cch.jb.pliny.imageRes.ImageEditorPartFactory
- All Implemented Interfaces:
- org.eclipse.gef.EditPartFactory
- public class ImageEditorPartFactory
- extends PlinyGEFEditFactory
the GEF EditPartFactory for mapping Pliny model objects to
GEF Controller objects for the Image editor's annotation area.
This handles the
ImageResource
(root model object) so that the factory
creates an ImageResourcePart, and the
LinkableObject
when
displayed directly within the root ImageResourcePart
so that
scalable anchor- and LinkableOject- parts are created. Other
kinds of data are handled by the inherited
PlinyGEFEditFactory
.
- Author:
- John Bradley
Method Summary |
org.eclipse.gef.EditPart |
createEditPart(org.eclipse.gef.EditPart context,
Object model)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageEditorPartFactory
public ImageEditorPartFactory(org.eclipse.ui.IWorkbenchPart myPart)
createEditPart
public org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context,
Object model)
- Specified by:
createEditPart
in interface org.eclipse.gef.EditPartFactory
- Overrides:
createEditPart
in class PlinyGEFEditFactory