[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: how to make a node pre-displayed inside another node
|
Hello Yuzhang,
I've tried same code with latest GMF sources and looks like it is working
for ecore diagram. Here is a part of .gmfmap file I added to make it working
with ecore diagram:
<domainInitializer
xsi:type="gmfmap:FeatureSeqInitializer">
<initializers
xsi:type="gmfmap:ReferenceNewElementSpec">
<feature
xsi:type="ecore:EReference"
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage/eClassifiers"/>
<newElementInitializers>
<initializers
xsi:type="gmfmap:FeatureValueSpec">
<feature
xsi:type="ecore:EAttribute"
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//ENamedElement/name"/>
<value
body="'class1'"/>
</initializers>
<elementClass
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EClass"/>
</newElementInitializers>
</initializers>
<initializers
xsi:type="gmfmap:ReferenceNewElementSpec">
<feature
xsi:type="ecore:EReference"
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage/eSubpackages"/>
<newElementInitializers>
<initializers
xsi:type="gmfmap:FeatureValueSpec">
<feature
xsi:type="ecore:EAttribute"
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//ENamedElement/name"/>
<value
body="'pkg2'"/>
</initializers>
<elementClass
href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/>
</newElementInitializers>
</initializers>
</domainInitializer>
The only difference with your .gmfmap file i can see here is:
<elementClass href="../../../plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EPackage"/>
attribute...
-----------------
Alex Shatalin