Resource symbolDiagramType = graph.getPossibleObject(indexRoot, MOD.StructuralModel_HasSymbolDiagramType);
if(symbolDiagramType == null) symbolDiagramType = DIA.Composite;
-
+
+ Resource symbolType = graph.getPossibleObject(indexRoot, MOD.StructuralModel_HasSymbolType);
+ if(symbolType == null) symbolType = DIA.DefinedElement;
+
// Symbol
- Resource symbol = new ModelingUtils(graph).createSymbol2("Symbol", symbolDiagramType);
+ Resource symbol = new ModelingUtils(graph).createSymbol2("Symbol", symbolDiagramType, symbolType);
graph.claim(componentType, MOD.ComponentTypeToSymbol, symbol);
graph.claim(componentType, L0.ConsistsOf, symbol);