Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Sirius Display changes in Resource(Disply new members of sirius diagram when resource change)
icon10.gif  Sirius Display changes in Resource [message #1393872] Fri, 04 July 2014 11:57 Go to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
Hi, i'm looking for a way to display Sirius diagram programmatically changes of resources.
For example, i have a ecore model running in editor and i would like to change the model in its resource (xml file), and i want to display this change in my diagram.

i have used F5 in my diagram but it doesn't work. when i refresh the root file in package explorer, it works. I have no idea to do it programmatically.

Srry, i'm not good at English so i can not explain more clearly.
Merci d'avance.
Re: Sirius Display changes in Resource [message #1393970 is a reply to message #1393872] Fri, 04 July 2014 15:12 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 270
Registered: August 2010
Senior Member
Hi Dat,

According of what you described, that should work by default. Do you
save your ecore model properly after having edited it ?

Make sure that the Sirius preference "Automatic Refresh" is activated.
If your resource (your ecore model) is correctly loaded within the
Sirius Session (you can unfold your resource in the Model Explorer view)
that should work.

Regards,

Florian

On 07/04/2014 04:40 PM, Dat Nguyen wrote:
> Hi, i'm looking for a way to display Sirius diagram programmatically
> changes of resources.
> For example, i have a ecore model running in editor and i would like to
> change the model in its resource (xml file), and i want to display this
> change in my diagram.
>
> i have used F5 in my diagram but it doesn't work. when i refresh the
> root file in package explorer, it works. I have no idea to do it
> programmatically.
>
> Srry, i'm not good at English so i can not explain more clearly.
> Merci d'avance.
Re: Sirius Display changes in Resource [message #1394380 is a reply to message #1393970] Sat, 05 July 2014 07:02 Go to previous messageGo to next message
Dat Nguyen is currently offline Dat NguyenFriend
Messages: 34
Registered: July 2014
Member
thank you for your answer.
I have changed manually resource, so "auto refresh" doesn't work,
but i found the solution by using "IProject.refreshLocal".
Re: Sirius Display changes in Resource [message #1395823 is a reply to message #1394380] Mon, 07 July 2014 12:52 Go to previous message
Ignacio Arechaga Fernandez is currently offline Ignacio Arechaga FernandezFriend
Messages: 14
Registered: May 2014
Location: Madrid
Junior Member
Can't it be that you have defined your mappings with "unsynchronized" mode? Try to put them as synchronized and I think it will work
Previous Topic:Limitations in Properties view
Next Topic:SAX2 driver class org.apache.xerces.parsers.SAXParser not found
Goto Forum:
  


Current Time: Thu Apr 25 15:33:48 GMT 2024

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

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

Back to the top