Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » extracting
extracting [message #61821] Thu, 12 October 2006 12:17 Go to next message
Eclipse UserFriend
hi,

i am trying to extract node information from a notation model,
especially what figure each node has (e.g. is it a rectangle, or an
ellipse, etc) I suppose it has to do sth with the "type" attributes,
which in the bottom example are 1001, 4001, 1002, 4002 respectively. 1
These constants are rather meaningless. Can somebody explain their meaning?



a simple .xxx_diagram file:

<notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:board="http://www.bowsern.de/xmlns/xgag"
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
xmi:id="_ByuGIFoJEdu5KpOEO8q_-Q" type="Board"
name="default3.board_diagram" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_Cv9xgFoJEdu5KpOEO8q_-Q"
type="1001">
<children xmi:type="notation:Node" xmi:id="_CwG7cFoJEdu5KpOEO8q_-Q"
type="4001"/>
<styles xmi:type="notation:FontStyle"
xmi:id="_Cv9xgVoJEdu5KpOEO8q_-Q"/>
<styles xmi:type="notation:DescriptionStyle"
xmi:id="_Cv9xgloJEdu5KpOEO8q_-Q"/>
<styles xmi:type="notation:FillStyle"
xmi:id="_Cv9xg1oJEdu5KpOEO8q_-Q"/>
<styles xmi:type="notation:LineStyle"
xmi:id="_Cv9xhFoJEdu5KpOEO8q_-Q"/>
<element xmi:type="board:Field" href="default3.board#//@fields.0"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_Cv9xhVoJEdu5KpOEO8q_-Q" x="120" y="144" width="109" height="66"/>
</children>
[...]
Re: extracting [message #61869 is a reply to message #61821] Thu, 12 October 2006 13:28 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

Look for them in the generated plugin.xml. They should map to your EMF
types.

vlad

On Thu, 12 Oct 2006 18:17:44 +0200, Felix Dorner wrote:

> hi,
>
> i am trying to extract node information from a notation model,
> especially what figure each node has (e.g. is it a rectangle, or an
> ellipse, etc) I suppose it has to do sth with the "type" attributes,
> which in the bottom example are 1001, 4001, 1002, 4002 respectively. 1
> These constants are rather meaningless. Can somebody explain their meaning?
>
>
>
> a simple .xxx_diagram file:
>
> <notation:Diagram xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:board="http://www.bowsern.de/xmlns/xgag"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> xmi:id="_ByuGIFoJEdu5KpOEO8q_-Q" type="Board"
> name="default3.board_diagram" measurementUnit="Pixel">
> <children xmi:type="notation:Node" xmi:id="_Cv9xgFoJEdu5KpOEO8q_-Q"
> type="1001">
> <children xmi:type="notation:Node" xmi:id="_CwG7cFoJEdu5KpOEO8q_-Q"
> type="4001"/>
> <styles xmi:type="notation:FontStyle"
> xmi:id="_Cv9xgVoJEdu5KpOEO8q_-Q"/>
> <styles xmi:type="notation:DescriptionStyle"
> xmi:id="_Cv9xgloJEdu5KpOEO8q_-Q"/>
> <styles xmi:type="notation:FillStyle"
> xmi:id="_Cv9xg1oJEdu5KpOEO8q_-Q"/>
> <styles xmi:type="notation:LineStyle"
> xmi:id="_Cv9xhFoJEdu5KpOEO8q_-Q"/>
> <element xmi:type="board:Field" href="default3.board#//@fields.0"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_Cv9xhVoJEdu5KpOEO8q_-Q" x="120" y="144" width="109" height="66"/>
> </children>
> [...]
Previous Topic:commands never disposed
Next Topic:TextDirectEditManager throws exception in Eclipse 3.2.1
Goto Forum:
  


Current Time: Sun Jun 01 03:47:10 EDT 2025

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

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

Back to the top