Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGMF common navigator Filter
https://www.eclipse.org/forums/index.php/mv/msg/75732/236431/#msg_236431
I'm trying to to create filters for my common navigator view but info
on how to add such filter seems a bit sparse.
My model file contains both a model node and a diagram node through
sharing a single file. I want to hide the diagram info. Also I'm using
uml2tools and I would like to hide certain nodes such as profile info.
Are there any examples to refer to?
(an effect similar to the java perspective which shows the contents of
a java class, and has filters which hide features such as @generated
etc)
regards
Steve]]>Bill Hinge2009-07-19T14:49:08-00:00Re: GMF common navigator Filter
https://www.eclipse.org/forums/index.php/mv/msg/75732/236520/#msg_236520
Originally posted by: aurelien.pupier.esial.net
Bill Hinge a écrit :
> Hi
>
> I'm trying to to create filters for my common navigator view but info
> on how to add such filter seems a bit sparse.
>
> My model file contains both a model node and a diagram node through
> sharing a single file. I want to hide the diagram info. Also I'm using
> uml2tools and I would like to hide certain nodes such as profile info.
>
> Are there any examples to refer to?
>
> (an effect similar to the java perspective which shows the contents of
> a java class, and has filters which hide features such as @generated
> etc)
>
>
> regards
> Steve
Hi Steve,
you maybe can look at the extension point org.eclipse.ui.navigator.navigatorContent.
Never used but seems to be the right thing to do that.
Aurelien Pupier]]>2009-07-20T13:24:36-00:00Re: GMF common navigator Filter
https://www.eclipse.org/forums/index.php/mv/msg/75732/236901/#msg_236901
> Bill Hinge a écrit :
>> Hi
>>
>> I'm trying to to create filters for my common navigator view but info
>> on how to add such filter seems a bit sparse.
>>
>> My model file contains both a model node and a diagram node through
>> sharing a single file. I want to hide the diagram info. Also I'm using
>> uml2tools and I would like to hide certain nodes such as profile info.
>>
>> Are there any examples to refer to?
>>
>> (an effect similar to the java perspective which shows the contents of
>> a java class, and has filters which hide features such as @generated
>> etc)
>>
>>
>> regards
>> Steve
>
> Hi Steve,
>
> you maybe can look at the extension point
> org.eclipse.ui.navigator.navigatorContent.
> Never used but seems to be the right thing to do that.
>
> Aurelien Pupier
Thanks Aurelien
I've used CNF before inc navigatorContent, I've tried using the filter
features before but never got them to work. Even the example from the
example EMF-GMF editor doesn't appear to work. I get my model contents
plus the diagram artefacts displayed in the navigator.
I know filters do work since the java filter on project explorer works
as I would want it to. Its just that I've never seen a working example
with a GMF editor which is using *DomainNavigatorContentProvider to
provide the input to cnf.
Also the new CNF editor in Extensions is annoying, when you add new
expressions via right click, the xml editor always has a warning saying
illegal input so I'm never sure if its working
regards
Steve]]>Bill Hinge2009-07-20T13:56:03-00:00Re: GMF common navigator Filter
https://www.eclipse.org/forums/index.php/mv/msg/75732/236955/#msg_236955
> Aurelien Pupier wrote:
>> Bill Hinge a écrit :
>>> Hi
>>>
>>> I'm trying to to create filters for my common navigator view but info
>>> on how to add such filter seems a bit sparse.
>>>
>>> My model file contains both a model node and a diagram node through
>>> sharing a single file. I want to hide the diagram info. Also I'm using
>>> uml2tools and I would like to hide certain nodes such as profile info.
>>>
>>> Are there any examples to refer to?
>>>
>>> (an effect similar to the java perspective which shows the contents of
>>> a java class, and has filters which hide features such as @generated
>>> etc)
>>>
>>>
>>> regards
>>> Steve
>>
>> Hi Steve,
>>
>> you maybe can look at the extension point
>> org.eclipse.ui.navigator.navigatorContent.
>> Never used but seems to be the right thing to do that.
>>
>> Aurelien Pupier
>
> Thanks Aurelien
>
> I've used CNF before inc navigatorContent, I've tried using the filter
> features before but never got them to work. Even the example from the
> example EMF-GMF editor doesn't appear to work. I get my model contents
> plus the diagram artefacts displayed in the navigator.
>
>
> I know filters do work since the java filter on project explorer works
> as I would want it to. Its just that I've never seen a working example
> with a GMF editor which is using *DomainNavigatorContentProvider to
> provide the input to cnf.
>
> Also the new CNF editor in Extensions is annoying, when you add new
> expressions via right click, the xml editor always has a warning saying
> illegal input so I'm never sure if its working
>
> regards
> Steve
I've got a bit closer I think but not sure what to put in filter
expression. Most of this was created by the extensions editor but
the filterExpression doesn't offer any clues. (I found the class Browse
button shows up many options so I just selected the one I created for my
projects)
The Diagram node and its children is what I'm trying to hide.
ngoss.diagram.diagram.providers.NgossViewProvider is a GMF generated
class and contract.presentation.SelectionTreeEditorPart is the Tree
editor from the EMF-GMF joining
If I can get this working then there are similar items I want to hide
from the uml2tools editor