Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Updating Model Attributes after changes in Diagram
Updating Model Attributes after changes in Diagram [message #1863285] Tue, 23 January 2024 11:39 Go to next message
Lukas-Angelo Meier is currently offline Lukas-Angelo MeierFriend
Messages: 8
Registered: May 2023
Junior Member
I am currently implementing a Threat Model with Eclipse Sirius and ran into an issue that i need some help with.

Some model attributes need to be updated if a dataflow intersects with a trust boundary.
I have implemented a ModelChangeTrigger that is called whenever there is a change in the diagram and after calculating if there are any intersections the corresponding model attributes are updated with a RecordingCommand.

This works reasonably well so far with one small hiccup.
If I move a Node in the model, the attribute is not updated until there is another change in the diagram.
Moving edges, for example by creating bendpoints, will update the model immediatly. The issue is only when moving a Node.
I suspect, that the new coordinates of the edge attached to the node are only updated after my methods get called in this case.

How can I get the new coordinates to make this change immediately?

Any help is appreciated.
Re: Updating Model Attributes after changes in Diagram [message #1863695 is a reply to message #1863285] Wed, 21 February 2024 14:06 Go to previous message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 705
Registered: July 2009
Senior Member
As mentioned in this announce, this forum is deprecated.
Please use GitHub Discussions from now on:

Thanks.


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Overriding/Replacing the default properties in Sirius
Next Topic:Deploy the sirius project
Goto Forum:
  


Current Time: Thu Dec 12 20:28:18 GMT 2024

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

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

Back to the top