non-graphical complex properties [message #146329] |
Sun, 12 August 2007 14:21 |
Eclipse User |
|
|
|
Originally posted by: jacob.barde.swri.org
I've hit a bit of a roadblock when it comes to dealing with
non-graphical child elements of graphical nodes.
The semantic model (EMF) portion of the diagram requires that all
measurements be written in the SI-units. The user will have the option
of which measurement system they wish to view and input the measurements
as US-English or SI/Metric (controlled by a menu toggled).
So a resulting model would look something like this.
<xmi:XMI ...>
<foo:Foo xmi:id="...">
<modelProperties displayMeasurementSystem="US_ENGLISH"/>
<!--
NOTE: All measurements (@value) in the semantic model are in
SI-units
-->
<node name="Node001" id="1">
<attributeSet>
<length enteredValue="10.0" value="3.0480"
enteredMS="US_ENGLISH" enteredUnits="US_LENGTH"/>
<diameter enteredValue="6" value="0.1524" enteredMS="US_ENGLISH"
enteredUnits="US_SMLENGTH"/>
</attributeSet>
</node>
...
</foo:Foo>
...
</xmi:XMI>
So the node would be visible on the canvas, but the measurements, are
(currently) only to be viewable/editable in the properties window.
Property |Value | units (read-only)
Name | Pipe001 |
Length | 10.0 | feet
Diameter | 6.0 | inches
I've searched around and tried to work with some of the articles that
others have referenced (tabbed properties, control of your properties,
etc.) but have found no luck in implementing them.
Has anyone been able to implement a complex properties mapping such as
this in their GMF application? Examples would be much appreciated (I
have a deadline in 2 days).
|
|
|
Powered by
FUDForum. Page generated in 0.02302 seconds