Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Migration to GMF 2.3: issue with Editpolicy and move/reparent
Migration to GMF 2.3: issue with Editpolicy and move/reparent [message #536916] Mon, 31 May 2010 13:44 Go to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm trying to move from GMF 2.2 to GMF 2.3.
I encounter some issue with EditPolicy on move/reparent.

By now, I don't understand what it exactly happen... :s

Sometimes, the move/reparent (seems to) work(s) fine. But other times there are unexpected behavior:
- the EditPart is duplicated
- the Editpart is deleted
- sometimes it seems that only the refresh doesn't work.
- after a deletion of the child, sometimes the parent is filled with image of the child...

That is really weird. There is nothing in log. I don't know where to begin to search.
I noticed in the bug comment that there was modifcations in EditPolicy.
Is someone can explain in what consists these modifications more precisely?

Thanks by advance for any hints

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Migration to GMF 2.3: issue with Editpolicy and move/reparent [message #539942 is a reply to message #536916] Mon, 14 June 2010 11:08 Go to previous messageGo to next message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

I'm looking closely to this issue and in fact on a reparent the old graphical definition is kept in diagram definition even if th enew one is created. Some changes are done in the model too and they work perfectly.

How the old graphic definition can be kept although the new one is correctly created?

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Re: Migration to GMF 2.3: issue with Editpolicy and move/reparent [message #540007 is a reply to message #536916] Mon, 14 June 2010 15:00 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Ok I found a workaround.

There is a modification between 2.2 and 2.3 in template for CanonicalEditpolicy (diagram::editpolicies::ChildContainerCanonicalEditPolicy)

Now it overrides the refreshSemantic method from CanonicalEditPolicy class. I commented this method and all works fine for me.

By now, I don't know exactly why it doesn't work. So if someone have ideas on the question, his comments are welcome Smile


Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Problems on using GMF generated Editor
Next Topic:how to make an element undeletable
Goto Forum:
  


Current Time: Sun Oct 06 10:55:41 GMT 2024

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

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

Back to the top