Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Caching Edit Parts possible?
Caching Edit Parts possible? [message #500703] Fri, 27 November 2009 15:21 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Dear GMF folks,

When a GMF editor is open, I work on the edit parts and do some internal
stuff on them. For performance reasons I build an internal cache of the
edit parts in a HashMap.

I have the feeling, that the GMF editor sometimes refreshes all
EditParts, i.e. recreates the whole edit part hierarchy from the domain
model. I have this feeling, because sometimes my internal cache is
completely outdated and does not contain any of the current EPs of the

Can someone give me a hint, when and why these refreshes of edit parts
are done?

Re: Caching Edit Parts possible? [message #500839 is a reply to message #500703] Sun, 29 November 2009 13:05 Go to previous message
Alex Shatalin is currently offline Alex ShatalinFriend
Messages: 141
Registered: July 2009
Senior Member
Hello Hauke,

You can use GraphicalViewer.getEditPartRegistry().get(view) to get EditPart
instance having notation model one, so you probably can remove custom cache
and use one from gef.

Alex Shatalin
Previous Topic:synchronize Outline/Overview with MultiPageEditor
Next Topic:Synchronizing different diagrams to show parts of the same model
Goto Forum:

Current Time: Fri Apr 16 14:46:06 GMT 2021

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

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

Back to the top