Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » why link can't connect each other
why link can't connect each other [message #202328] Tue, 19 August 2008 07:07 Go to next message
Eclipse UserFriend
Originally posted by: airwing.gmail.com

this is my ecore file. gmf generate graph, tool, model, map and gen all
looks good. but in my diagram, the link can't connect any node figure.

sorry, i an new to gmf



<?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="lcu"
nsURI="http://www.linkage.com/lcu" nsPrefix="lcu">
<eClassifiers xsi:type="ecore:EClass" name="Element" abstract="true"/>
<eClassifiers xsi:type="ecore:EClass" name="Node" abstract="true"
eSuperTypes="#//Element"/>
<eClassifiers xsi:type="ecore:EClass" name="State" abstract="true"
eSuperTypes="#//Node"/>
<eClassifiers xsi:type="ecore:EClass" name="Definition"
eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EReference" name="nodes"
upperBound="-1"
eType="#//Node" containment="true"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="transistions"
upperBound="-1"
eType="#//Transition" containment="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Decision"
eSuperTypes="#//Node"/>
<eClassifiers xsi:type="ecore:EClass" name="StartState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="EndState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="ProcessState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="DaoState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="TuxedoState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="BufferState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="SOState"
eSuperTypes="#//State"/>
<eClassifiers xsi:type="ecore:EClass" name="Transition"
eSuperTypes="#//Element">
<eStructuralFeatures xsi:type="ecore:EReference" name="from"
eType="#//Node"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="to"
eType="#//Node"/>
</eClassifiers>
</ecore:EPackage>
Re: why link can't connect each other [message #202723 is a reply to message #202328] Wed, 20 August 2008 15:01 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

There should be a generated command - something like XXXCreateCommand;
check what it does and debug if necessary.

airwing wrote:
> this is my ecore file. gmf generate graph, tool, model, map and gen all
> looks good. but in my diagram, the link can't connect any node figure.
>
> sorry, i an new to gmf
>
>
>
> <?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="lcu"
> nsURI="http://www.linkage.com/lcu" nsPrefix="lcu">
> <eClassifiers xsi:type="ecore:EClass" name="Element" abstract="true"/>
> <eClassifiers xsi:type="ecore:EClass" name="Node" abstract="true"
> eSuperTypes="#//Element"/>
> <eClassifiers xsi:type="ecore:EClass" name="State" abstract="true"
> eSuperTypes="#//Node"/>
> <eClassifiers xsi:type="ecore:EClass" name="Definition"
> eSuperTypes="#//Element">
> <eStructuralFeatures xsi:type="ecore:EReference" name="nodes"
> upperBound="-1"
> eType="#//Node" containment="true"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="transistions"
> upperBound="-1"
> eType="#//Transition" containment="true"/>
> </eClassifiers>
> <eClassifiers xsi:type="ecore:EClass" name="Decision"
> eSuperTypes="#//Node"/>
> <eClassifiers xsi:type="ecore:EClass" name="StartState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="EndState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="ProcessState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="DaoState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="TuxedoState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="BufferState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="SOState"
> eSuperTypes="#//State"/>
> <eClassifiers xsi:type="ecore:EClass" name="Transition"
> eSuperTypes="#//Element">
> <eStructuralFeatures xsi:type="ecore:EReference" name="from"
> eType="#//Node"/>
> <eStructuralFeatures xsi:type="ecore:EReference" name="to"
> eType="#//Node"/>
> </eClassifiers>
> </ecore:EPackage>
Previous Topic:Connection from an element to itself (Changing of where the target gets connected)
Next Topic:tool doesn't work
Goto Forum:
  


Current Time: Fri Sep 20 14:46:41 GMT 2024

Powered by FUDForum. Page generated in 0.02833 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top