Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Resource management
Resource management [message #1706477] Thu, 27 August 2015 08:45 Go to next message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
Hello,

I am developping an EMF based application in which I introduced Sirius to create my own representations (Table and diagram).

My model was split into several files, and I developped a navigator to manage the projects..
I bind the EditActionGroup to my navigator to get basic operations in the navigator (Copy, Paste, Delete, etc...).
When trying to suppress a resource, it seems to "corrupt" the aird file, I cannot open a session anymore.

If I suppress the resource after closing the session, then re-open the session, it works!

What would I do to suppress any link in the aird file ?

Regards,
Franck

[Updated on: Thu, 27 August 2015 13:50]

Report message to a moderator

Re: Resource management [message #1706487 is a reply to message #1706477] Thu, 27 August 2015 09:24 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Hi,

Normally Sirius manage this use case. Can you provide an example to
reproduce?

Best Regards.

Le 27/08/2015 10:45, Franck MIMET a écrit :
> Hello,
>
> I am developping an EMF based application in which I introduced Sirius
> to create my own representations (Table and diagram).
>
> My model was split into several files, and I developped a navigator to
> manage the projects..
> I bind the EditActionGroup to my navigator to get basic operations in
> the navigator (Copy, Paste, Delete, etc...).
> When I try to suppress a resource, it seems to "corrupt" the aird file,
> I cannot open a session anymore.
>
> What would I do to suppress any link in the aird file ?
>
> Regards,
> Franck



--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Resource management [message #1706500 is a reply to message #1706487] Thu, 27 August 2015 12:06 Go to previous messageGo to next message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
Hi Esteban,

Thank you for our help.

My project is composed of several models, each of them has its own file and contains a "root" object.
The issue is that after supressing one of these file:
- I cannot expand anymore the aird file, ie see all its children (that is why I supposed that the Session cannot be opened because of a corruption).
- An error occured in init(IEditorSite site_p, IEditorInput input_p) of my editor, due to a "bad" initialisation .
I have not investigated enough make a valuable conclusion on this issue.

Is there any actions that should be performed to inform Sirius that a resource has been suppressed, such as the opposite of addSemanticResource ?

Franck
Re: Resource management [message #1706538 is a reply to message #1706500] Thu, 27 August 2015 15:00 Go to previous messageGo to next message
Esteban Dugueperoux is currently offline Esteban DugueperouxFriend
Messages: 472
Registered: July 2009
Senior Member
Le 27/08/2015 14:06, Franck MIMET a écrit :
> Hi Esteban,
>
> Thank you for our help.
>
> My project is composed of several models, each of them has its own file
> and contains a "root" object.
> The issue is that after supressing one of these file:
> - I cannot expand anymore the aird file, ie see all its children (that
> is why I supposed that the Session cannot be opened because of a
> corruption).
> - An error occured in init(IEditorSite site_p, IEditorInput input_p) of
> my editor, due to a "bad" initialisation .
> I have not investigated enough make a valuable conclusion on this issue.
>
> Is there any actions that should be performed to inform Sirius that a
> resource has been suppressed, such as the opposite of addSemanticResource ?
>
> Franck

The better you can do to work around your issue of Sirius session in bad
state is to reinit it, i.e. close and reopen it.

A similar bug on external Sirius change has been fixed recently [1].

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=473263

Best Regards.


--
Esteban Dugueperoux - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Resource management [message #1706610 is a reply to message #1706538] Fri, 28 August 2015 07:32 Go to previous message
Franck MIMET is currently offline Franck MIMETFriend
Messages: 28
Registered: August 2014
Junior Member
I agree with you for closing and re-open the sessions.
It seems the best work-around to my issue.
Previous Topic:Eclipse/EMF/Sirius Developer (France : Paris & Toulouse)
Next Topic:Custom background and layout depending on instance data
Goto Forum:
  


Current Time: Wed Jan 20 04:55:26 GMT 2021

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

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

Back to the top