Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Can't save diagram(Problems with saving the diagram upon exit.)
Can't save diagram [message #1703961] Thu, 06 August 2015 07:57 Go to next message
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 11
Registered: June 2015
Junior Member
Hi guys,

I can't figure out how to make it possible for the end user to save the diagram. Once a diagram has been created and the user has moved the nodes and edges around to look perfect, it is not possible to save the diagram upon exit.

How do I go about this? How do I add save functionality to the end user?

Regards,

Axel Niklasson

[Updated on: Mon, 10 August 2015 11:56]

Report message to a moderator

Re: Can't save diagram [message #1703987 is a reply to message #1703961] Thu, 06 August 2015 12:18 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 06/08/2015 09:57, Axel Niklasson a écrit :
> Hi guys,

Hello.

> I can't figure out how to make it possible for the end user to save the
> diagram. Once a diagram has been created and the user has moved the
> noded and edges around to look perfect, it is not possible to save the
> diagram upon exit.

It should normally work with all the standard ways: Ctrl+S, File > Save
(or Save All) in the menu, and the Save icon in the toolbar.

Are these disabled in your case? If not, do they throw errors when invoked?

Regards,

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Can't save diagram [message #1703988 is a reply to message #1703987] Thu, 06 August 2015 12:28 Go to previous messageGo to next message
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 11
Registered: June 2015
Junior Member
Pierre-Charles David wrote on Thu, 06 August 2015 12:18
Le 06/08/2015 09:57, Axel Niklasson a écrit :
> Hi guys,

Hello.

> I can't figure out how to make it possible for the end user to save the
> diagram. Once a diagram has been created and the user has moved the
> noded and edges around to look perfect, it is not possible to save the
> diagram upon exit.

It should normally work with all the standard ways: Ctrl+S, File > Save
(or Save All) in the menu, and the Save icon in the toolbar.

Are these disabled in your case? If not, do they throw errors when invoked?

Regards,

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Hi Pierre-Charles!

Thanks for the quick reply.

The diagram indicates that, even though the style has changed, no changes have been made. The * indicator is missing, which is weird since the diagram obviously is changed.

And when I relaunch the Eclipse instance, the diagram is gone. All I see is a message that says that the diagram was not saved. See attached screenshot.

Any ideas?

Regards,

Axel Niklasson
Re: Can't save diagram [message #1703991 is a reply to message #1703988] Thu, 06 August 2015 12:43 Go to previous messageGo to next message
Pierre-Charles David is currently offline Pierre-Charles DavidFriend
Messages: 703
Registered: July 2009
Senior Member
Le 06/08/2015 14:28, Axel Niklasson a écrit :
> The diagram indicates that, even though the style has changed, no changes have been made. The * indicator is missing, which is weird since the diagram obviously is changed.

This is the root of the problem, Sirius should detect the change and
mark the editor dirty.

> And when I relaunch the Eclipse instance, the diagram is gone. All I see is a message that says that the diagram was not saved. See attached screenshot.

This part is normal (or at least expected) given the previous problem:
if you exit Eclipse with an editor open, it (the Eclipse workspace) will
try to reopen an editor on the diagram, which was never saved on disk
and thus does not exist after the restart.

Anyway, we would need more details about your situation to go further.
Which version of Sirius are you using? If it is not the latest, can you
test with that (3.0.0 at this point)? What kind of metamodel are you
using (plain ecore, xcore, xsd, something xtext-based)?

The change detection normally works pretty reliably, so anything that
could give us a hint about what is special in your case is welcome.

Regards,
Pierre-Charles

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


Pierre-Charles David - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Can't save diagram [message #1704277 is a reply to message #1703991] Mon, 10 August 2015 06:09 Go to previous messageGo to next message
Axel Niklasson is currently offline Axel NiklassonFriend
Messages: 11
Registered: June 2015
Junior Member
Pierre-Charles David wrote on Thu, 06 August 2015 12:43
Le 06/08/2015 14:28, Axel Niklasson a écrit :
> The diagram indicates that, even though the style has changed, no changes have been made. The * indicator is missing, which is weird since the diagram obviously is changed.

This is the root of the problem, Sirius should detect the change and
mark the editor dirty.

> And when I relaunch the Eclipse instance, the diagram is gone. All I see is a message that says that the diagram was not saved. See attached screenshot.

This part is normal (or at least expected) given the previous problem:
if you exit Eclipse with an editor open, it (the Eclipse workspace) will
try to reopen an editor on the diagram, which was never saved on disk
and thus does not exist after the restart.

Anyway, we would need more details about your situation to go further.
Which version of Sirius are you using? If it is not the latest, can you
test with that (3.0.0 at this point)? What kind of metamodel are you
using (plain ecore, xcore, xsd, something xtext-based)?

The change detection normally works pretty reliably, so anything that
could give us a hint about what is special in your case is welcome.

Regards,
Pierre-Charles

--
Pierre-Charles David - Obeo

Need professional services for Sirius?
http://www.obeodesigner.com/sirius


I am using Sirius 2.0.0 at the moment. I am not sure whether I am able to try v3.0.0 or not, but I will definitely check it out.

I am trying to build a graphical visualization tool for the Autosar metamodel and the metamodel is an ecore file. The generation of diagrams are working perfectly, so I find it really weird not being able to save.

Any ideas?

[UPDATE]
I managed to make the star be present, so now the change detection is working. However, when pressing Save (Ctrl + S) nothing happens, the star is still there. How does the save process work?

[UPDATE 2]
I have found that the changes are actually written to the representations file when I hit save, but the changes indicator are still present. How do I make sure that the most recently saved diagram, if one exists, is loaded when I regenerate the diagram?

Thanks. Regards,

Axel Niklasson

[Updated on: Mon, 10 August 2015 08:00]

Report message to a moderator

Re: Can't save diagram [message #1748374 is a reply to message #1704277] Tue, 22 November 2016 14:54 Go to previous message
ramukumar M is currently offline ramukumar MFriend
Messages: 14
Registered: June 2012
Junior Member
Hello Axel Niklasson
I am trying to load autosar model in sirius but i am not able to view the diagram,
COuld you please share me the example how to load autosar model in sirius?
BR
Ramukumar M
Previous Topic:UMLDesigner Missing Methods in class diagram
Next Topic:The object is not contained in a resource
Goto Forum:
  


Current Time: Fri Apr 26 05:52:47 GMT 2024

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

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

Back to the top