Skip to main content


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 15:27 Go to next message
saroj padhy is currently offline saroj padhyFriend
Messages: 8
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 15: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 12:25 Go to previous message
saroj padhy is currently offline saroj padhyFriend
Messages: 8
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: Tue Oct 15 22:28:52 GMT 2024

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

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

Back to the top