Community
Participate
Working Groups
I frequently use few filters and it would be nice if a command is available for it, so that I can bind a shortcut key for those filters (or at least I can use them with QuickAccess)
What do you mean by "PE", Package Explorer or Project Explorer? (In reply to comment #0) > I frequently use few filters and it would be nice if a command is available > for it By "it" do you mean one command for each filter to toggle the enable state?
(In reply to comment #1) > What do you mean by "PE", Package Explorer or Project Explorer? > > (In reply to comment #0) > > I frequently use few filters and it would be nice if a command is available > > for it > By "it" do you mean one command for each filter to toggle the enable state? No. Just one command with a parameter to say which filter to toggle.
What do you mean by "PE", Package Explorer or Project Explorer?
(In reply to comment #3) > What do you mean by "PE", Package Explorer or Project Explorer? Package Explorer. If its Project Explorer, then I would have raised the bug against Platform UI :-)
Created attachment 181823 [details] Possible fix
I'll take a look during M4.
The patch is going into the right direction. The problem is that custom filters are used in several JDT views and hence I would expect that toggling works in all of them and not just in the Package Explorer. Minor issue: make sure the new code is formatted according to the project's formatter settings.
(In reply to comment #7) > Minor issue: make sure the new code is formatted according to the project's > formatter settings. Any particular reason why Save Actions are not enabled on the project?
> Any particular reason why Save Actions are not enabled on the project? There are two: 1. we could not agree on which actions should be enabled 2. we use a non-public save action
Created attachment 184241 [details] Patch v02 Now the command works on other Java views that support filtering. As a side effect, now this works only when the view is active, and the user cannot assign a keybinding to a specific filter.
It doesn't work yet: 1. assign a key binding to e.g. toggle the empty packages filter 2. verify: it works in the Package Explorer 3. try in Packages view: it does not work 4. go to the Keys preference page: oops the command is now there twice Besides that it looks like the code for the Java Outline view filters is missing. The description: "A parameterizable command that toggles a custom filter in the active view, if it supports" should be more Java specific.