|
|
Re: EMF and TreeViewer/IDeferredWorkbenchAdapter [message #647684 is a reply to message #647647] |
Fri, 07 January 2011 18:18 |
Alex Mising name Messages: 51 Registered: August 2009 |
Member |
|
|
We have to deal with relatively large EMF models all the time. The best way to view these that I know of (without creating custom editors) is the MoDisco Model Browser. It is a mature generic EMF browser/editor with many features; a great piece of EMF ecosystem that deserves more attention than it gets.
The one feature relevant to this discussion is the way it deals with presenting large collections in the tree: it breaks them into ranges e.g. [1..100], [101..200] etc. (and probably uses some heuristics to come up with ranges dynamically based on the size of the collection) which keeps the number of tree nodes that need to be expanded at the same time small. (It also supports selecting any collection/reference and showing objects in a table which also works fine on relatively large models.)
I would guess this is a common way to deal with the issue of visualizing large trees, and one could implement this in a custom tree editor - but there would have to be a very good reason to not use a generic (and highly customizable) viewer/editor available.
[Updated on: Fri, 07 January 2011 18:20] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04458 seconds