Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Filters for GMF generated models
Filters for GMF generated models [message #337017] Tue, 21 July 2009 09:37
steve orobec is currently offline steve orobec
Messages: 156
Registered: July 2009
Senior Member
Hi

I have built a plugin which utilises both my own EMF/GMF DSL and
uml2tools.

I'm using Galileo CNF and it works fine but there is too much unwanted
detail in my model (eg my model file contains model and Diagram info)
and my uml model contains non class diag info (eg documentation,
profiles, etc).

I would like my custom explorer to show my DSL model not diag info,
I would like my UML tree just show package, class, attribute.

I use the GMF generated content providers
ngoss.diagram.navigator.NgossDomainNavigatorContentProvider
org.eclipse.uml2.diagram.clazz.navigator.UMLDomainNavigatorC ontentProvider

and label providers
ngoss.diagram.navigator.NgossNavigatorLabelProvider
org.eclipse.uml2.diagram.clazz.navigator.UMLDomainNavigatorL abelProvider

for my respective models.

These work fine

But I'm stuck on the filter, I've tried the GMF group but no joy.

If I use the Extensions editor I can create a commonFilter but I'm not
sure what expression should go inside.

Most examples on the internet seem to be file based, whereas I want the
filtered contents of individual xmi files.

The effect I'm after is similar to the Java Explorer that shows the
contents of a Java Class file, with filters that support hiding of
various parts of the file. I had a look in CVS but wasn't sure where to
look.

Anyone point me in the right direction or give me a clue please.

(Also I notice when using the Extensions editor I get a lot of these
'Body Text' freestyle edit windows, many of which don't seem to render
correctly in plugin.xml)

regards
Steve
Previous Topic:Linux File Permissions
Next Topic:IMarker for org.eclipse.swt.widgets.Table
Goto Forum:
  


Current Time: Sat Aug 23 05:31:27 EDT 2014

Powered by FUDForum. Page generated in 0.05929 seconds