Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » StateMachine generation programmatically - shrinking states(After droping States on a programmatically generated SM the heights of the initially well sized States skrink.)
StateMachine generation programmatically - shrinking states [message #1724422] Tue, 23 February 2016 20:00 Go to next message
András Dobreff is currently offline András DobreffFriend
Messages: 9
Registered: September 2014
Junior Member
Hello!

We are creating a tool that generates Papyrus diagrams programmatically. We are using GEF and GMF Requests and Commands to set the diagrams together. With ClassDiagrams everythings works fine, but with SM-s we are facing the following issue:

As we drop a State on a Region with DropObjectsRequest the newly created Figure gets an initial size (40x44). (The preferred size of the state figure)
After that sometime the States change their sizes (they shrink) and their new size become 40x20, while the preferred size stays 40x44.

The problem is that, if we want to move and/or resize the states with a ChangeBoundsRequest these commands get executed before the shrinking of the states. After the shrinking everything works fine, but we don't know when this shrinking happens.

Is there a way to solve this problem?

PS: BTW This shrinking can be seen as is happens in a short period of time.

András

[Updated on: Sat, 27 February 2016 21:40]

Report message to a moderator

Re: StateMachine generation programmatically - shrinking states [message #1724956 is a reply to message #1724422] Sat, 27 February 2016 21:36 Go to previous message
András Dobreff is currently offline András DobreffFriend
Messages: 9
Registered: September 2014
Junior Member
We have taken further experiments focusing on the .notation file. For some strange reason if the the state label is not 20px high the shrinking happens. I mean Papyrus tries to make the labels 20px high at some time, but it does not affect the notation model.

The state labels have 40px height initially, and that causes the shrinking of the states. In all other cases if the labels aren't 20px high Papyrus makes the adjustment, causing a shrinking or expansion.

So modifying the state label height (setting it to 20px) solved the problem, but it is still a stange behaviour.

András
Previous Topic:SysML Internal Block Diagram doesn't show Block contents
Next Topic:Serialized UML sequence diagram issue
Goto Forum:
  


Current Time: Wed Jul 15 06:35:16 GMT 2020

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

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

Back to the top