Reputation: 323
I am creating an eclipse application which have a switch under menu windwos-preferences-> on/off. Depending on status of this switch I want to update the content of project-explorer i.e. when switch is ON show all files with extension .on and if switch is OFF show all file with extension .off (hide .on and .off files depending on switch selected). How can i achieve this?
Upvotes: 0
Views: 674
Reputation: 3956
You can use the Common Navigator Framework to add such functionality to a Navigator View (= views like Project Explorer, Package Explorer, Resource Navigator etc.).
See this question for details: Adding a filter to the Project Explorer in Eclipse
Upvotes: 4