Skip to main content



      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 07:57 Go to next message
Eclipse UserFriend
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 11:12 Go to previous messageGo to next message
Eclipse UserFriend
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 03:02 Go to previous messageGo to next message
Eclipse UserFriend
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 08:52 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 14:24:23 EDT 2025

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

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

Back to the top