Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Issue with layout of border nodes (arrange-all)
Issue with layout of border nodes (arrange-all) [message #1810307] Wed, 07 August 2019 12:45
Joerg Hermann is currently offline Joerg HermannFriend
Messages: 15
Registered: September 2012
Location: Munich
Junior Member
Hi *,
I have implemented a custom LayoutNodeProvider that arranges container nodes in a certain grid, which involves resizing them as well. Attached to these containers I have a number of border nodes (usually 50 to 100 per container) that shall be arranged as
well in a semantically meaningful way.
Unfortunately, I need to invoke the 'arrange-all' action twice to achieve the desired result. The first run only places the container nodes correctly, but leaves the border nodes collapsed on the top of the container.
After deep diving into this behavior with the debugger, I found that during the preparation of the ChangeBoundsRequest the BorderItemLocator is invoked (getValidLocation()). Unfortunately, the resizing of the container node as parent for the border nodes has not happened yet at that point of time. So the container appears to be way too small to allow the desired placement of the border nodes.
Applying the 'arrange-all' a second time performs the correct placement as the size of the container nodes is now sufficient and getValidLocation() delivers the same position as passed in suggestedLocation.

My Question(s):

  • Is there a known way to suppress the invocation of the BorderItemLocator during the preparation of the command
  • Is there (as a workaround) a way to split the layout command into two independent parts that are run sequentially (pass 1 would layout the containers, pass2 to border nodes)?
  • Do you have any other suggestions to solve this?
    (Overriding the BorderItemLocator in a way that it assigns fixed locations for the boder nodes is not an option, as I want to able to move things around after the layout has been applied.

Many thanks for any hint or idea
Previous Topic:SuperClass gets displayed with SubClass
Next Topic:Transformation of profile UML from OMG (*.xmi) in a metamodel for use in Sirius.
Goto Forum:

Current Time: Thu Feb 27 20:56:44 GMT 2020

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

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

Back to the top