Skip to main content



      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 06:43 Go to next message
Eclipse UserFriend

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 10:21 Go to previous messageGo to next message
Eclipse UserFriend
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
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 10:55 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 10:46:33 EDT 2025

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

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

Back to the top