Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Can Nodes, containers or layers be marked as not movable is Sirius(Can Nodes,comtainers or layers be marked as not movable is Sirius)
Can Nodes, containers or layers be marked as not movable is Sirius [message #1801988] Wed, 30 January 2019 11:43 Go to next message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member

Is there a way to mark container, node, or layer as not movable in Sirius after its initial layout.
This would be to help me with an issue I raised at https://www.eclipse.org/forums/index.php/t/1097301/ where moving a container gives me layout problems.

Thanks,
Neil
Re: Can Nodes, containers or layers be marked as not movable is Sirius [message #1802004 is a reply to message #1801988] Wed, 30 January 2019 15:21 Go to previous messageGo to next message
Steve Monnier is currently offline Steve MonnierFriend
Messages: 572
Registered: May 2011
Senior Member
Hello,

I am not a fan of not movable elements as containers can grow because of their nodes and overlap some other diagram elements and you would be stuck with it. Anyway, I think you can try by adding a new ModelChangeTrigger to the SessionEventBroker (accessible with org.eclipse.sirius.business.api.session.Session.getEventBroker()). In this ModelChangeTrigger, you will need to return an UnexecutableCommand if the notification concerns an X or Y coordinate update.

Regards,
Steve


Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Can Nodes, containers or layers be marked as not movable is Sirius [message #1802008 is a reply to message #1802004] Wed, 30 January 2019 15:55 Go to previous message
Neil Mackenzie is currently offline Neil MackenzieFriend
Messages: 131
Registered: December 2013
Senior Member
Thanks Steve,
I might give this a try. I agree it is not the best approach in general, but it might suit my particular use case well.
Neil
Previous Topic:AQL: Recursive selection
Next Topic:Workspace Image style cannot take URI from feature.
Goto Forum:
  


Current Time: Thu Apr 18 08:13:45 GMT 2024

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

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

Back to the top