Skip to main content



      Home
Home » Eclipse Projects » Sirius » Set/arrange the sub container programmatically
Set/arrange the sub container programmatically [message #1802497] Mon, 11 February 2019 01:05 Go to next message
Eclipse UserFriend
Hi all,

In Sirius I am creating first child containers of the diagram programmatically. After creating the containers, if I create inside containers by palette in diagram the container will not insert properly. It shows as below

index.php/fa/34854/0/

Can I know the task I need to perform programmatically after creation of elements to create the sub elements in proper arrangement?

Thanks in advance

[Updated on: Mon, 11 February 2019 01:30] by Moderator

Re: Set/arrange the sub container programmatically [message #1802503 is a reply to message #1802497] Mon, 11 February 2019 03:24 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

My guess is that "ParentContainer" has a fixed size, so when you create the child at a relative position which is outside of its' visible area, the parent does not grow but gains a scroll bar so that you can scroll its viewport to see the child.

If that is not what you want, "ParentContainer" should be configured in "Auto-Size" mode (with width and height set to -1) so that it will automatically adjust its size to accomodate any child created inside of it without needing scrollbars.

Regards,
Re: Set/arrange the sub container programmatically [message #1803065 is a reply to message #1802503] Thu, 21 February 2019 10:56 Go to previous message
Eclipse UserFriend
Thanks Pierre,

I created "Parent Container" programmatically so I should configure Auto-size programmatically. I could not set height and width to -1 as I am getting the object as its class object(ParentContainerImpl). I am not getting that as 'DNodeContainerEditPart'. Can I get the DNodeContainerEditPart from the semantic class? How to get the newly created editpart?

[Updated on: Thu, 21 February 2019 23:01] by Moderator

Previous Topic:Problem when copying model elements using EcoreUtil
Next Topic:Creating an updatesite with examples
Goto Forum:
  


Current Time: Wed Jul 23 10:18:28 EDT 2025

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

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

Back to the top