|
|
Re: how to resize a container programatically based on the count of border nodes on the container [message #1796313 is a reply to message #1796307] |
Wed, 10 October 2018 06:01  |
Eclipse User |
|
|
|
Hi Sharmila,
Does the arrange-all or the auto-size actions (or buttons in the tabbar) manually improve the situation ?
Do you want to do this automatically ? or manually ?
This will change the way you contribute your mecanism : a precommit listener or a ModelChangeTrigger or a menu/action.
Then you will have to look for the DNodeContainer matching your mapping and their GMF nodes to update their location constraints (Size/Bound : width and height). You might have to update the main node but also the compartment child.
You also might have to update the layout constraint of the border nodes : look in the children of the DNodeContainer.getOwnedBorderedNodes() for DNode matching your mapping(s), then retrieve the corresponding GMF Node and update their layoutConstraint (Location/Bounds: x, y). Note that you might also look for the BorderItemLocator and update it.
Regards
|
|
|
Powered by
FUDForum. Page generated in 0.34068 seconds