Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » new to gmf
new to gmf [message #184822] Wed, 30 April 2008 11:54 Go to next message
Eclipse UserFriend
Originally posted by: lishan.cs.york.ac.uk

Hi,
I am using gmf to create a modelling tool. The tool will draw nodes within
nodes to any level. They represent states within a statechart. The states
are drawn as boxes either with a solid line border or a dashed line
border. States have a field called parallel which is a boolean. If
parallel is true for a state then all of the states placed within it
should be drawn with a dashed border alternatively they should be drawn
with a solid border. I don't know how to implement this. at the moment
states have a single figure descriptor for drawing rectangles with solid
line borders. Do i have to create 2 figure descriptors for states, one for
drawing rectangles with a solid line border and one for drawing rectangles
with a dashed line border ? And then how do I force the correct one to be
used depending on the value of the field parallel in the parent state.
Thanks

Lishan
Re: new to gmf [message #184844 is a reply to message #184822] Wed, 30 April 2008 12:12 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello lishan,

> line borders. Do i have to create 2 figure descriptors for states, one
> for drawing rectangles with a solid line border and one for drawing
> rectangles with a dashed line border ?
Currently yes.

> And then how do I force the correct one to
> be used depending on the value of the field parallel in the parent state.
You have to create two node mappings one sub-state with solid border and one
for the sub-state with dashed one + (OCL) constraint checking parent.parallel
property.

-----------------
Alex Shatalin
Re: new to gmf [message #184856 is a reply to message #184844] Wed, 30 April 2008 12:40 Go to previous message
Eclipse UserFriend
Originally posted by: lishan.cs.york.ac.uk

Thank-you, you are most helpful, I will try this.
Previous Topic:curved connections
Next Topic:Layout error (move element)
Goto Forum:
  


Current Time: Thu Apr 25 15:31:26 GMT 2024

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

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

Back to the top