Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Caching Edit Parts possible?
Caching Edit Parts possible? [message #500703] Fri, 27 November 2009 10:21 Go to next message
Eclipse UserFriend
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
editor.

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

Hauke
Re: Caching Edit Parts possible? [message #500839 is a reply to message #500703] Sun, 29 November 2009 08:05 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 06:00:15 EDT 2025

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

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

Back to the top