GMF2.0 disappeared visual elements. [message #145001] |
Tue, 31 July 2007 11:00  |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Hi there,
i finally managed the migration to gmf 2.0. But i discoverd a big problem:
I have a so called "ObjectLayer" where package structures could be
edited, like in an uml diagram. So i have for example 2 packages "com"
and "genloop" and want to connect them with a subpackage-link. In gmf
1.0.3 this was no problem, but in 2.0 the second (target) package
dissapears. Only in the diagram, in the xmi file everything went like it
should.
Here is the ecore definition of my package:
<eClassifiers xsi:type="ecore:EClass" name="EjbPackage">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="name" value="EjbPackage"/>
<details key="kind" value="elementOnly"/>
</eAnnotations>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2003/XMLType#//String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="attribute"/>
<details key="name" value="name"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="subPackage"
upperBound="-1"
eType="#//EjbPackage" containment="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="subPackage"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference" name="ejbClass"
upperBound="-1"
eType="#//EjbClass" containment="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="ejbClass"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
<eStructuralFeatures xsi:type="ecore:EReference"
name="sessionBeans" upperBound="-1"
eType="#//SessionBean" containment="true">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="kind" value="element"/>
<details key="name" value="sessionBeans"/>
<details key="namespace" value="##targetNamespace"/>
</eAnnotations>
</eStructuralFeatures>
</eClassifiers>
Is it possible that the linkmapping from 1.0.3 doesn't work here?
<links>
<tool
xsi:type="gmftool:CreationTool"
href="Genloop.gmftool#//@palette/@tools.0/@tools.11"/>
<diagramLink
href="Genloop.gmfgraph#SubpackageLink"/>
<linkMetaFeature
xsi:type="ecore:EReference"
href="Genloop.ecore#//EjbPackage/subPackage"/>
</links>
Thanks in advance
Jens
|
|
|
|
|
|
|
Re: GMF2.0 disappeared visual elements. [message #146125 is a reply to message #146062] |
Fri, 10 August 2007 05:47  |
Eclipse User |
|
|
|
Originally posted by: snej_NO-SPAM_.esuark.de
Jens Krause wrote:
> Well, thanks for this information, but this didn't solve the problem
> :-(. The label still says "undefined" ...
> Could the it be that the problem is that i use my EjbPackage as package
> and if you create a subPackage link to that EjbPackage it becomes a
> "subPackage" child of the source EjbPackage? In Gmf 1.3 that works ...
In the model it looks like that:
2 EjbPackages, "com" and "genloop" before the subPackageLink is created:
<objectLayer xmi:type="ControlLayer:ObjectLayer" xmi:id="[id]">
<ejbPackage xmi:type="ControlLayer:EjbPackage" xmi:id="[id]"
name="com"/>
<ejbPackage xmi:type="ControlLayer:EjbPackage" xmi:id="[id]"
name="genloop"/>
</objectLayer>
and so it looks after:
<objectLayer xmi:type="ControlLayer:ObjectLayer" xmi:id="[id]">
<ejbPackage xmi:type="ControlLayer:EjbPackage" xmi:id="[id]"
name="com">
<subPackage xmi:type="ControlLayer:EjbPackage" xmi:id="[id]"
name="genloop"/>
</ejbPackage>
</objectLayer>
So the EjbPackage "genloop" becomes a subPackage of "com". In Gmf 1.3
there simply appears a link between the two packages, in gmf 2.0 the
target package "genloop" and the link disappear ...
Any ideas? This problem blocks my work enormously and i have no idea how
to solve this :-(.
regards
jens
|
|
|
Powered by
FUDForum. Page generated in 0.08562 seconds