Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » CommonNavigator does not call ViewerFilter
CommonNavigator does not call ViewerFilter [message #463423] Mon, 12 February 2007 03:59 Go to next message
Eclipse UserFriend
I have configured a ViewerFilter for a CommonNavigator by adding
a CommonFilter to org.eclipse.ui.navigator.navigatorContent and
binding it to the Viewer by adding a contentExtension to the
viewer with a pattern for the Filter:

<extension
point="org.eclipse.ui.navigator.viewer">
<viewer
viewerId="com.example.ui.NavigationView">
</viewer>
<viewerContentBinding viewerId="com.example.ui.NavigationView">
<includes>
<contentExtension
pattern="com.example.ui.emptyNodesFilter"/>
</includes>
</viewerContentBinding>
</extension>

<extension
point="org.eclipse.ui.navigator.navigatorContent">
<commonFilter
class="com.example.ui.EmptyNodesFilter"
description="Discards nodes without children and attached objects"
id="com.example.ui.emptyNodesFilter"
name="Filter for empty nodes">
</commonFilter>
</extension>

The select() method of the ViewerFilter com.example.ui.emptyFilter is never
called and I have no idea why. Thanks for your advice.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Re: CommonNavigator does not call ViewerFilter [message #463676 is a reply to message #463423] Wed, 14 February 2007 09:42 Go to previous message
Eclipse UserFriend
Peter Maas schrieb:
> I have configured a ViewerFilter for a CommonNavigator by adding
[...]
> The select() method of the ViewerFilter com.example.ui.emptyFilter is never
> called and I have no idea why.

Solved. I hadn't activated the ViewerFilter.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Previous Topic:Integrating other plugins through update site project
Next Topic:CommonNavigator.getInitialInput()
Goto Forum:
  


Current Time: Sat Mar 15 17:51:30 EDT 2025

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

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

Back to the top