roneditor.model
Class ModelCreationFactory

java.lang.Object
  extended by roneditor.model.ModelCreationFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory

public class ModelCreationFactory
extends java.lang.Object
implements org.eclipse.gef.requests.CreationFactory

This class implements the CreationFactory used by the CreationTool. It uses the EMF-generated factories to create the model instances.

Author:
Tony Modica

Field Summary
private  java.lang.Class<?> targetClass
           
 
Constructor Summary
ModelCreationFactory(java.lang.Class<?> targetClass)
           
 
Method Summary
 java.lang.Object getNewObject()
           
 java.lang.Object getObjectType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetClass

private final java.lang.Class<?> targetClass
Constructor Detail

ModelCreationFactory

public ModelCreationFactory(java.lang.Class<?> targetClass)
Method Detail

getNewObject

public java.lang.Object getNewObject()
Specified by:
getNewObject in interface org.eclipse.gef.requests.CreationFactory

getObjectType

public java.lang.Object getObjectType()
Specified by:
getObjectType in interface org.eclipse.gef.requests.CreationFactory