uk.ac.kcl.cch.jb.pliny.pdfAnnot
Class PdfEditorPartFactory

java.lang.Object
  extended byuk.ac.kcl.cch.jb.pliny.factories.PlinyGEFEditFactory
      extended byuk.ac.kcl.cch.jb.pliny.pdfAnnot.PdfEditorPartFactory
All Implemented Interfaces:
org.eclipse.gef.EditPartFactory

public class PdfEditorPartFactory
extends PlinyGEFEditFactory

the GEF EditPartFactory for mapping Pliny model objects to GEF Controller objects for the PDF editor's annotation area.

This handles the PdfResource (root model object) so that the factory creates an PdfResourcePart, and the LinkableObject when displayed directly within the root PdfResourcePart so that scalable anchor- and LinkableOject- parts are created. Other kinds of data are handled by the inherited PlinyGEFEditFactory.

Author:
John Bradley

Constructor Summary
PdfEditorPartFactory(org.eclipse.ui.IWorkbenchPart myPart)
           
 
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
 

Constructor Detail

PdfEditorPartFactory

public PdfEditorPartFactory(org.eclipse.ui.IWorkbenchPart myPart)
Method Detail

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