Connection Label not appearing [message #91055] |
Wed, 10 January 2007 06:35  |
Eclipse User |
|
|
|
Hi
I m using the following ecore file. All the connection Label(Link1) not
appearing after connecting between the elements. Only for one link I m
getting the label not for the others.
I m using GMF2.0M4. I have .gmfgraph and .gmftool taking Main as Diagram
root Element.
Plz help me regarding the above.
Regards,
Sandip
************************************************
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="ModelCorous"
nsURI="" nsPrefix="ms">
<eClassifiers xsi:type="ecore:EClass" name="Main">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
changeable="false" defaultValueLiteral="Main"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ochild"
lowerBound="1"
upperBound="-1" eType="#//OChild" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="dchild"
lowerBound="1"
upperBound="-1" eType="#//DChild" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="opLink1"
upperBound="-1"
eType="#//Link1" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="OChild">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral="OChild"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="DChild">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral="DChild"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Link1">
<eStructuralFeatures xsi:type="ecore:EReference" name="dchildsrc"
lowerBound="1"
eType="#//DChild"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="dchilddest"
lowerBound="1"
eType="#//DChild"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ochildsrc"
lowerBound="1"
eType="#//OChild"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="ochilddest"
lowerBound="1"
eType="#//OChild"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="link"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
changeable="false" defaultValueLiteral="Link1"/>
</eClassifiers>
</ecore:EPackage>
|
|
|
|
Re: Connection Label not appearing [message #135898 is a reply to message #135736] |
Wed, 13 June 2007 13:23  |
Eclipse User |
|
|
|
Hi,
do you mean GMF2.0 RC2 or RC3? Because I cannot find RC3 in GMF downloads.
You can try to use the last nightly build from download page and regenerate
your code. This works nice for me with labels of connections.
Regards,
Jens
Rene Ladan wrote:
> Sandip Sahoo wrote:
>> Hi
>>
>> I m using the following ecore file. All the connection Label(Link1) not
>> appearing after connecting between the elements. Only for one link I m
>> getting the label not for the others.
>>
> I see the same problem with GMF 2.0rc3. Most connections are created,
> displayed and stored in the .*_diagram file, except for (see the files):
> - Dependency between Class/Class , Package/Package , or Class/Package
> - Message
> - Association
>
> The strange thing is that Dependency connections between *Node/*Node,
> Component/Component , and Component/*Node are drawn.
>
> The .gmfgraph and .gmfmap files are attached (root element is "Meta").
> All files and the generated Java code validate correctly.
>
> Thanks,
> Rene
|
|
|
Powered by
FUDForum. Page generated in 0.03947 seconds