Diagram Editor not showing dirty state! [message #1698045] |
Wed, 10 June 2015 15:11 |
Bailey Trenton Messages: 31 Registered: May 2015 |
Member |
|
|
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 15:27] Report message to a moderator
|
|
|
Re: Diagram Editor not showing dirty state! [message #1698049 is a reply to message #1698045] |
Wed, 10 June 2015 15:58 |
|
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
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Re: Diagram Editor not showing dirty state! [message #1698125 is a reply to message #1698055] |
Thu, 11 June 2015 13:19 |
|
Hello,
Can you tell me a little more what you Reloading and Saving policies are
used for? Maybe there is way to contribute your specific behaviour
instead of overwritting some of the Sirius policies that could cause
some unexpected behaviours.
Regards,
Steve
Le 10/06/2015 18:59, Bailey Trenton a écrit :
> Hi Steve,
> I am currently using Sirius 2.0.5 with Luna. We create and open the
> diagram programmatically at first but after it is created and I close
> down the program and reopen it, the diagram gets loaded by Sirius.
> The only difference we have is that we have a sessionManagerListener
> registered that sets the Reloading and Saving policies but neither of
> these seem to get invoked during the load. We also create the UI
> session in the SessionManagerListener because in the constructor for the
> UI session it overwrites the reloading policy we set on the current
> Session.
> Thanks,
> Bailey
>
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Re: Diagram Editor not showing dirty state! [message #1698228 is a reply to message #1698166] |
Fri, 12 June 2015 11:06 |
|
Hello,
Does your second editor is a custom editor or a Sirius representation?
Anyway this is unexpected. Doing your model edition using the Sirius
Transactional Editing Domain should propagate the dirty state to the
Sirius Editor. I guess you can submit a bugzilla presenting both of your
editors and how you execute your model operation.
Regards,
Steve
Le 11/06/2015 21:22, Bailey Trenton a écrit :
> Hello,
>
> I have investigated the problem further and think I know what the issue is.
>
> Our project has two editors that edit the same model and use the same
> editing domain(Sirius's EditingDomain). In the
> DAnalysisSessionImpl.java notifyListeners method it checks to see if the
> notification received was the same type as the previous one and if so it
> doesn't forward it on. In our case the dirty notification is coming
> from our other editor so when the DAnalysisSession sees the dirty
> notification coming from the diagram, it matches the previous
> notification type and therefore does not update the dirty state of the
> diagram.
> Was Sirius not designed to allow sharing of its editing domain with
> other editors? If not should I submit a bugzilla for that feature?
>
> Thanks,
> Bailey
--
Steve Monnier - Obeo
Need professional services for Sirius?
http://www.obeodesigner.com/sirius
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.02772 seconds