eclipseeclipse-plugineclipse-rcprcpcnf

Filtering contents in Eclipse Common Navigator Framework view


I am developing a 3.x based Eclipse RCP application. In the part of application, I am implementing Common-navigator plugin of Eclipse itself, in order to display resources in the workspace. I'have created the navigator view shown below:

Custom Project Explorer

But I would like display only one tree child element. More specifically, I only want clause folder and its elements to be shown.

What is the accurate way to do it?


Solution

  • BTW, this way is adding common filter to across all the Navigator. If you need to configure for particular navigator then you need to get its view and then get viewer out of it and attach your filter to viewer. To achieve this you may need a trigger point e.g., a menu/button/startup extension!