|
Re: error in graphical model [message #633531 is a reply to message #633519] |
Mon, 18 October 2010 10:40 |
Mariot Chauvin Messages: 174 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------020502010809080707050408
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Hi,
You should not use name with empty space for figures.
Rename "Polygon node" to "PolygonNode" and "Elipse node" to "ElipseNode" and it will work.
Hope this help.
Regards,
Mariot
--
Mariot Chauvin @ Obeo
http://www.obeo.fr
http://mariot-thoughts.blogspot.com
http://fr.linkedin.com/in/mariotchauvin
lalakis a écrit :
> I created a new gmf project to create an editor for my emf model.I am
> in the phase where i have to create the mapping tool,but when i am
> loading the graphical tool that i have already created i get an error
> : Error loading model: Unresolved reference 'Polygon'.
> (platform:/resource/ATAG%20Ecore/model/My.gmfgraph, 35, 30)"
>
> The Polygon is a reference to a figure that i have created which is a
> single polygon icon for my components.
>
> This is the graph file i have already created:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <gmfgraph:Canvas xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:gmfgraph="http://www.eclipse.org/gmf/2006/GraphicalDefinition">
> <figures>
> <descriptors
> name="Polygon node">
> <actualFigure
> xsi:type="gmfgraph:Polygon">
> <layout
> xsi:type="gmfgraph:GridLayout"/>
> <size
> x="20"
> y="20"/>
> <children
> xsi:type="gmfgraph:Label"
> name="Node"
> text="node"/>
> </actualFigure>
> </descriptors>
> <descriptors
> name="Elipse node">
> <actualFigure
> xsi:type="gmfgraph:Ellipse"/>
> </descriptors>
> <descriptors
> name="Connection">
> <actualFigure
> xsi:type="gmfgraph:PolylineConnection"/>
> </descriptors>
> </figures>
> <nodes
> name="ATAGPLAN"
> figure="Polygon node"/>
> <nodes
> name="Task"
> figure="Elipse node"/>
> <nodes
> name="Data"
> figure="Elipse node"/>
> <connections
> name="con"
> figure="Connection"/>
> </gmfgraph:Canvas>
>
> Did i forget to include something in my graph file?
>
>
--------------020502010809080707050408
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<pre class="moz-signature" cols="150"><font color="#000000">Hi,
You should not use name with empty space for figures.
Rename "Polygon node" to "PolygonNode" and "Elipse node" to "ElipseNode" and it will work.
Hope this help.
Regards,
Mariot
</font>
--
Mariot Chauvin @ Obeo
<a class="moz-txt-link-freetext" href="http://www.obeo.fr">http://www.obeo.fr</a>
<a class="moz-txt-link-freetext" href="http://mariot-thoughts.blogspot.com">http://mariot-thoughts.blogspot.com</a>
<a class="moz-txt-link-freetext" href="http://fr.linkedin.com/in/mariotchauvin">http://fr.linkedin.com/in/mariotchauvin</a> </pre>
<br>
<br>
lalakis a écrit :
<blockquote cite="mid:i9h6ss$sqg$1@news.eclipse.org" type="cite">I
created a new gmf project to create an editor for my emf model.I am in
the phase where i have to create the mapping tool,but when i am loading
the graphical tool that i have already created i get an error : Error
loading model: Unresolved reference 'Polygon'.
(platform:/resource/ATAG%20Ecore/model/My.gmfgraph, 35, 30)"
<br>
<br>
The Polygon is a reference to a figure that i have created which is a
single polygon icon for my components.
<br>
<br>
This is the graph file i have already created:
<br>
<br>
<?xml version="1.0" encoding="UTF-8"?>
<br>
<gmfgraph:Canvas xmi:version="2.0"
<br>
xmlns:xmi=<a class="moz-txt-link-rfc2396E" href="http://www.omg.org/XMI">"http://www.omg.org/XMI"</a>
<br>
xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
<br>
xmlns:gmfgraph=<a class="moz-txt-link-rfc2396E" href="http://www.eclipse.org/gmf/2006/GraphicalDefinition">"http://www.eclipse.org/gmf/2006/GraphicalDefinition"</a>>
<br>
<figures>
<br>
<descriptors
<br>
name="Polygon node">
<br>
<actualFigure
<br>
xsi:type="gmfgraph:Polygon">
<br>
<layout
<br>
xsi:type="gmfgraph:GridLayout"/>
<br>
<size
<br>
x="20"
<br>
y="20"/>
<br>
<children
<br>
xsi:type="gmfgraph:Label"
<br>
name="Node"
<br>
text="node"/>
<br>
</actualFigure>
<br>
</descriptors>
<br>
<descriptors
<br>
name="Elipse node">
<br>
<actualFigure
<br>
xsi:type="gmfgraph:Ellipse"/>
<br>
</descriptors>
<br>
<descriptors
<br>
name="Connection">
<br>
<actualFigure
<br>
xsi:type="gmfgraph:PolylineConnection"/>
<br>
</descriptors>
<br>
</figures>
<br>
<nodes
<br>
name="ATAGPLAN"
<br>
figure="Polygon node"/>
<br>
<nodes
<br>
name="Task"
<br>
figure="Elipse node"/>
<br>
<nodes
<br>
name="Data"
<br>
figure="Elipse node"/>
<br>
<connections
<br>
name="con"
<br>
figure="Connection"/>
<br>
</gmfgraph:Canvas>
<br>
<br>
Did i forget to include something in my graph file?
<br>
<br>
<br>
</blockquote>
</body>
</html>
--------------020502010809080707050408--
|
|
|
|
Powered by
FUDForum. Page generated in 0.05371 seconds