Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Regions in a Statemachine diagram
Regions in a Statemachine diagram [message #229844] Tue, 12 May 2009 17:44 Go to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I'm working on a state machine and i want to make something like UML2Tools
state machine diagram, but i'm having some problems with parallel regions
on composite states.

This is what happens on UML2Tools, the user can modify the vertical
dimension.

http://img244.imageshack.us/img244/2439/statemachine.jpg

Im my diagram i can have regions but i can't modify their size.

http://img136.imageshack.us/img136/2480/mystatemachine.jpg

Thanks for your help.
Re: Regions in a Statemachine diagram [message #229968 is a reply to message #229844] Wed, 13 May 2009 11:03 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Aldo,

Do you need to modify the size of regions or not?..

-----------------
Alex Shatalin
Re: Regions in a Statemachine diagram [message #230136 is a reply to message #229968] Wed, 13 May 2009 14:23 Go to previous messageGo to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
I need to modify the size of regions.

Thanks.

Alex Shatalin wrote:

> Hello Aldo,

> Do you need to modify the size of regions or not?..

> -----------------
> Alex Shatalin
Re: Regions in a Statemachine diagram [message #230141 is a reply to message #230136] Wed, 13 May 2009 15:05 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello aldi,

> I need to modify the size of regions.
Can you make those regions a sub-nodes (with corresponding domain model element
attached to it) or should it be a compartments in the main node?

-----------------
Alex Shatalin
Re: Regions in a Statemachine diagram [message #230156 is a reply to message #230141] Wed, 13 May 2009 15:54 Go to previous messageGo to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
I want them to be sub-nodes in the main node. So the user can add the
regions he wants, but i can't modify the sub-nodes vertical size. Thats my
problem.

Here are my .gmfgraph and my .gmfmap:

http://img24.imageshack.us/img24/6776/36366159.jpg

http://img135.imageshack.us/img135/8972/theirs.jpg.

Aldi.

Alex Shatalin wrote:

> Hello aldi,

>> I need to modify the size of regions.
> Can you make those regions a sub-nodes (with corresponding domain model
element
> attached to it) or should it be a compartments in the main node?

> -----------------
> Alex Shatalin
Re: Regions in a Statemachine diagram [message #230262 is a reply to message #230156] Thu, 14 May 2009 11:37 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello aldi,

Can you select this sub-node / will you see a selection frame with "dots"
on the corners allowing to resize this node?

-----------------
Alex Shatalin
Re: Regions in a Statemachine diagram [message #230400 is a reply to message #230262] Fri, 15 May 2009 09:07 Go to previous messageGo to next message
aldi is currently offline aldiFriend
Messages: 6
Registered: July 2009
Junior Member
Hello Alex,

I can select this sub-node and i can see the frame with dots at the
corners but i can't resize this sub-node.

http://img136.imageshack.us/img136/2480/mystatemachine.jpg

Thank's for trying to help me.


Alex Shatalin wrote:

> Hello aldi,

> Can you select this sub-node / will you see a selection frame with "dots"
> on the corners allowing to resize this node?

> -----------------
> Alex Shatalin
Re: Regions in a Statemachine diagram [message #230546 is a reply to message #230400] Fri, 15 May 2009 15:47 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello aldi,

Please check wich EditPolicy was installed wich EditPolicy.PRIMARY_DRAG_ROLE
onto the sub-node. It should be ResizableShapeEditPolicy, but it looks like
NonResizableEditPolicy (or it's subclass) was used instead.

-----------------
Alex Shatalin
Previous Topic:Correct way to customize CreateCommand
Next Topic:Prevent creation of subroutingpoints
Goto Forum:
  


Current Time: Fri Apr 26 23:16:11 GMT 2024

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

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

Back to the top