Stefan,
May be it's simple to have only one generated model and edit plugin
and have the filtering code somewhere near your viewers. You could
wrap your content and label providers that you pass into your viewers
and let the wrappers do the viewer specific stuff.
Regards,
Eike Stepper
----
http://wiki.eclipse.org/CDO
http://wiki.eclipse.org/Net4j
Stefan Winkler schrieb:
Hi,
I have an EMF model, for which I want to provide several viewers
showing different hierarchy levels of that model. I.e. I want to
create something like the viewers in the Java Browsing perspective,
which separates the Java Tree into Package, Class and Member viewers.
As far as I understand, a .genmodel can only create one Edit and
Editor for a model.
So in order to create several viewers, should I create several
genmodels from the one model and then customize the generated
edit(or) code in order to limit the items shown or would it be more
efficient to implement viewers and content providers manually?
Cheers,
Stefan