Class EMFNotationGModelFactory
- java.lang.Object
-
- org.eclipse.glsp.server.emf.EMFGModelFactory
-
- org.eclipse.glsp.server.emf.notation.EMFNotationGModelFactory
-
- All Implemented Interfaces:
GModelFactory
public abstract class EMFNotationGModelFactory extends EMFGModelFactory
A graph model factory produces a graph model from the semantic model and the notation 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 EMFNotationModelStatemodelState-
Fields inherited from class org.eclipse.glsp.server.emf.EMFGModelFactory
idGenerator
-
-
Constructor Summary
Constructors Constructor Description EMFNotationGModelFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected GEdgeBuilderapplyEdgeData(org.eclipse.emf.ecore.EObject edgeElement, GEdgeBuilder builder)Applies all layout related data from the edge semantic element to the builder if possible.protected GNodeBuilderapplyShapeData(org.eclipse.emf.ecore.EObject shapeElement, GNodeBuilder builder)Applies all layout related data from the shape semantic element to the builder if possible.protected abstract voidfillRootElement(org.eclipse.emf.ecore.EObject semanticModel, Diagram notationModel, GModelRoot newRoot)Fills the new root element with a graph model drived from the semantic and the notation model.protected voidfillRootElement(GModelRoot newRoot)Fills the new root element with a graph model derived from the source model.-
Methods inherited from class org.eclipse.glsp.server.emf.EMFGModelFactory
createGModel, createRootElement
-
-
-
-
Field Detail
-
modelState
@Inject protected EMFNotationModelState modelState
-
-
Method Detail
-
fillRootElement
protected void fillRootElement(GModelRoot newRoot)
Description copied from class:EMFGModelFactoryFills the new root element with a graph model derived from the source model.- Specified by:
fillRootElementin classEMFGModelFactory- Parameters:
newRoot- new graph model root
-
fillRootElement
protected abstract void fillRootElement(org.eclipse.emf.ecore.EObject semanticModel, Diagram notationModel, GModelRoot newRoot)Fills the new root element with a graph model drived from the semantic and the notation model.- Parameters:
semanticModel- semantic model rootnotationModel- notation model rootnewRoot- new graph model root
-
applyShapeData
protected GNodeBuilder applyShapeData(org.eclipse.emf.ecore.EObject shapeElement, GNodeBuilder builder)
Applies all layout related data from the shape semantic element to the builder if possible.- Parameters:
shapeElement- element represented by a shape in the notationbuilder- node builder- Returns:
- the given builder
-
applyEdgeData
protected GEdgeBuilder applyEdgeData(org.eclipse.emf.ecore.EObject edgeElement, GEdgeBuilder builder)
Applies all layout related data from the edge semantic element to the builder if possible.- Parameters:
edgeElement- element represented by an edge in the notationbuilder- edge builder- Returns:
- the given builder
-
-