Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » GMF Diagram-EMF Model Sync problem
GMF Diagram-EMF Model Sync problem [message #199473] Wed, 30 July 2008 03:04 Go to next message
Eclipse UserFriend
Originally posted by: s.gil.gmx.com

Hello,
Im currently having a sync problem between the GMF diagram and the EMF
Model, in my application.

The situation is as the following:
In my application, when I change a property on one of my nodes in the GMF
diagram I need to make an Elist, non modifiable.
So when i do that, the diagram keeps "seeing" the list as modifiable, while
the EMF model doesnt allow to modify the list.

I assume it is a SYNC problem, because when i close and open the GMF diagram
again, the list behaves as it should, as an unmodifiable list.

the following is the code used to turn the list as non-modifiable:
In the example the List is called: "this.iports".

this.iports = new EcoreEList.UnmodifiableEList<IPort>(this,

InTmlDevToolsV02Package.eINSTANCE.getFilter_Iports(),

newIPorts.size(), newIPorts.toArray());



eNotify(new ENotificationImpl(this, Notification.SET,
InTmlDevToolsV02Package.FILTER__FILTER_CLASS, oldFilterClass, filterClass));

eNotify(new ENotificationImpl(this, Notification.SET,
InTmlDevToolsV02Package.FILTER__IPORTS, oldIports, this.iports));

(i have tryied a lot of posible notifications, but with no effect).


I assume the problem is that the GMF diagram does NOT sees the EMF propertiy
chage (make the list non-modifiable).
Anyone has an idea what might be my problem here? any clues to solve it?

Or anyone know how to "REFRESH" the whole GMF diagram programatically?


thanks in advance.

-Santiago Gil
Re: GMF Diagram-EMF Model Sync problem [message #199532 is a reply to message #199473] Wed, 30 July 2008 12:52 Go to previous messageGo to next message
urs zeidler is currently offline urs zeidlerFriend
Messages: 91
Registered: July 2009
Member
There is no natural sync between the EMF model and the GMF mapping file.
I use a transformation process in ATL to generate the mapping from the
EMF model.

see http://opensource.urszeidler.de/ATLflow/html1/samples/genera teGMF.html

I think there are one or more projects addressing this also.

greetings, urs.
Re: GMF Diagram-EMF Model Sync problem [message #199720 is a reply to message #199532] Fri, 01 August 2008 03:13 Go to previous message
Eclipse UserFriend
Originally posted by: s.gil.gmx.com

thnask urs,

i ll check and i ll let you iknow. I was planning on using
OpenArchitectureWare for code generation, is ATLSync similar to OAW, in some
ways?

cheers.



"urs zeidler" <ich@urszeidler.de> wrote in message
news:g6po6k$cab$1@build.eclipse.org...
> There is no natural sync between the EMF model and the GMF mapping file.
> I use a transformation process in ATL to generate the mapping from the EMF
> model.
>
> see http://opensource.urszeidler.de/ATLflow/html1/samples/genera teGMF.html
>
> I think there are one or more projects addressing this also.
>
> greetings, urs.
Previous Topic:remember pallete selection ?
Next Topic:A tree outline in GMF
Goto Forum:
  


Current Time: Sat Jun 06 11:19:49 GMT 2020

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

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

Back to the top