StateMachine generation programmatically - shrinking states [message #1724422] |
Tue, 23 February 2016 20:00 |
András Dobreff 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03352 seconds