edu.usc.cse.desi.editpart
Class DESISelectionEditPartFactory

java.lang.Object
  extended byedu.usc.cse.desi.editpart.DESISelectionEditPartFactory
All Implemented Interfaces:
org.eclipse.gef.EditPartFactory

public class DESISelectionEditPartFactory
extends java.lang.Object
implements org.eclipse.gef.EditPartFactory

This edit part factor, as contrasted with DESIEditPartFactor, is to be used in the selection page of the editor. This is all necessary because the selection figures will be different from the regular figures; they will have the connections on the outside and will possible have more information on the component or host. Therefore, we need a new edit part factor to match the same model elements with our new edit parts/figures.

Author:
Nels Started May 4, 2004

Constructor Summary
DESISelectionEditPartFactory()
           
 
Method Summary
 org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context, java.lang.Object model)
          Create the edit part for the given model object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DESISelectionEditPartFactory

public DESISelectionEditPartFactory()
Method Detail

createEditPart

public org.eclipse.gef.EditPart createEditPart(org.eclipse.gef.EditPart context,
                                               java.lang.Object model)
Create the edit part for the given model object. The problem with the selection factory is that only the highest level object (Like the selected host or component) should use "selection style" figure with visuble external connections. The sub-components of the host or component should have the regular style figure. To do this, we must make some decision based on EditPart context which will tell us the parent of the current model.

Specified by:
createEditPart in interface org.eclipse.gef.EditPartFactory