Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » how to enable/disable Common Filters in Common Navigator (CNF)
icon3.gif  how to enable/disable Common Filters in Common Navigator (CNF) [message #902259] Thu, 16 August 2012 11:27 Go to next message
saroj padhy is currently offline saroj padhy
Messages: 3
Registered: August 2012
Junior Member
In my plug-in I have few Common filters (classes) in the Common Navigator.

I need to disable all the filters when Eclipse loads by programming.
Presently, it retains the last state of filters.

Thanks in advance.
Saroj

[Updated on: Thu, 16 August 2012 11:30]

Report message to a moderator

Re: how to enable/disable Common Filters in Common Navigator (CNF) [message #902387 is a reply to message #902259] Fri, 17 August 2012 08:25 Go to previous message
saroj padhy is currently offline saroj padhy
Messages: 3
Registered: August 2012
Junior Member
I have code below which disables all filters defined in an array.
But I am not finding a proper place to put this code, so that on start-up of Eclipse, this code should run, and disable all the filters.

INavigatorContentService contServ = comViewer.getNavigatorContentService();
contServ.getActivationService().deactivateExtensions(filterIds, false);
contServ.getActivationService().persistExtensionActivations();


where, comViewer is the CommonViewer instance,
filterIds is an array of common filter ids to be disabled.

May be this piece of code is not working!
I found this from a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292813

Saroj

Previous Topic:Implement Project Navigator with e4
Next Topic:WorkspaceModifyOperation does not generate the events
Goto Forum:
  


Current Time: Thu Apr 24 06:27:52 EDT 2014

Powered by FUDForum. Page generated in 0.02998 seconds