Caching Edit Parts possible? [message #500703] |
Fri, 27 November 2009 10:21  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.09109 seconds