Package org.eclipse.glsp.server.emf
Class EMFGModelFactory
- java.lang.Object
-
- org.eclipse.glsp.server.emf.EMFGModelFactory
-
- All Implemented Interfaces:
GModelFactory
- Direct Known Subclasses:
EMFNotationGModelFactory
public abstract class EMFGModelFactory extends java.lang.Object implements GModelFactory
A graph model factory produces a graph model from the source model in the model state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.glsp.server.features.core.model.GModelFactory
GModelFactory.NullImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected EMFIdGeneratoridGeneratorprotected EMFModelStatemodelState
-
Constructor Summary
Constructors Constructor Description EMFGModelFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcreateGModel()protected GModelRootcreateRootElement()protected abstract voidfillRootElement(GModelRoot newRoot)Fills the new root element with a graph model derived from the source model.
-
-
-
Field Detail
-
modelState
@Inject protected EMFModelState modelState
-
idGenerator
@Inject protected EMFIdGenerator idGenerator
-
-
Method Detail
-
createGModel
public void createGModel()
- Specified by:
createGModelin interfaceGModelFactory
-
createRootElement
protected GModelRoot createRootElement()
-
fillRootElement
protected abstract void fillRootElement(GModelRoot newRoot)
Fills the new root element with a graph model derived from the source model.- Parameters:
newRoot- new graph model root
-
-