Diagram Editor not showing dirty state! [message #1698045] |
Wed, 10 June 2015 11:11  |
Eclipse User |
|
|
|
Hello,
I have been working with Sirius for a while now and am having an issue with the diagram editor not showing that it is dirty.
When I start my application, the diagram is already open and on the diagram is one container with one node inside that container.
If the first thing I do is move the node inside the container to another spot inside that same container, the editor does not go dirty(does not have the * symbol). The "Save" button activates so there are changes registered but no dirty icon on the editor.
After I hit the save button, all other changes do make the editor dirty.
Is there a way for me to get the editor to register dirty for all changes at any layer?
Any help would be appreciated.
Bailey
[Updated on: Wed, 10 June 2015 11:27] by Moderator
|
|
|
Re: Diagram Editor not showing dirty state! [message #1698049 is a reply to message #1698045] |
Wed, 10 June 2015 11:58   |
Eclipse User |
|
|
|
Hello,
I tried to reproduce your issue by having an opened diagram with a
container containing a node, when I closed Eclipse. My diagram is also
opened when I start Eclipse. However, the dirty state is displayed when
I move a node inside my container.
How do you proceed to open the Sirius session and the diagram in your
application? What is your version of Sirius?
Regards,
Steve
Le 10/06/2015 17:11, Bailey Trenton a écrit :
> Hello,
> I have been working with Sirius for a while now and am having an
> issue with the diagram editor not showing that it is dirty.
>
> When I start my application, the diagram is already open and on the
> diagram is one container with one node inside that container.
>
> If the first thing I do is move the node inside the container to another
> spot inside that same container, the editor does not go dirty(does not
> have the * symbol). The "Save" button activates so there are changes
> registered but no dirty icon on the editor.
>
> However, if I move the container around first, the editor goes dirty(Has
> the * symbol).
>
> Is there a way for me to get the editor to register dirty for all
> changes at any layer?
>
> Any help would be appreciated.
>
> Bailey
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
|
|
|
Re: Diagram Editor not showing dirty state! [message #1698273 is a reply to message #1698228] |
Fri, 12 June 2015 13:39  |
Eclipse User |
|
|
|
Hi,
Our second editor is just a text editor.
I think we have determined the issue. Our model is in memory and our semantic resource is just a text file. Our system can make changes to the model that will not be represented on the diagram or in the resource. When these changes happen the session fires a change notification but nothing has actually changed in the files, just the model. This gets recorded as a dirty notification in the DAnalysisSessionImpl but the editor is actually not dirty. When I then try and move nodes around, the diagram gets another dirty notification but it already thinks it is dirty so it doesn't propagate that message on.
So I think it is something we have to figure out with our system and when we should generate notifications.
Thanks,
Bailey
|
|
|
Powered by
FUDForum. Page generated in 0.51381 seconds