Skip to main content


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 13:37
Bill HingeFriend
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 Apr 20 00:41:30 GMT 2024

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

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

Back to the top