Bug 386125 - [content assist] Allow packages to be filtered directly from autocomplete popup/organize imports
Summary: [content assist] Allow packages to be filtered directly from autocomplete pop...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
: 181171 430061 430064 562752 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-07-27 09:12 EDT by Glenview Jeff CLA
Modified: 2021-02-16 08:00 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Glenview Jeff CLA 2012-07-27 09:12:48 EDT
Build Identifier: 20110916-0149

The type filters feature would be far more usable if it were possible to select packages/types to filter directly from the pop-up dialogs when performing autocomplete (control-space), organize imports, quick fix, etc.  Currently I have to perform so many steps to ignore a package that I only do it for the most frequent naming collisions.


Reproducible: Always
Comment 1 Ayushman Jain CLA 2012-07-27 11:43:37 EDT
(In reply to comment #0)
> Build Identifier: 20110916-0149
> 
> The type filters feature would be far more usable if it were possible to select
> packages/types to filter directly from the pop-up dialogs when performing
> autocomplete (control-space), organize imports, quick fix, etc.  Currently I
> have to perform so many steps to ignore a package that I only do it for the
> most frequent naming collisions.
> 
> 
> Reproducible: Always

It just involves going to the preference page and setting the package to be filtered there. A shortcut you propose is not directly relevant to every java editor pop-up and for most users providing such commands will just add noise to the popup. Unless the popular vote is in favour I'd not touch this at the moment.

Moving to JDT/UI for advice.
Comment 2 Dani Megert CLA 2012-07-29 11:27:16 EDT
Unwanted packages can be filtered via Java > Appearance > Type Filters
Comment 3 Glenview Jeff CLA 2012-07-29 12:48:37 EDT
Of course this can be done via the preferences Dani, which is why I wrote in the description, "I have to perform so many steps to ignore a package that I only do it for the most frequent naming collisions."

Please think outside the box for a minute.  Consider Firefox's "awesome bar."  If I want to eliminate a page from my browsing history, in the past I would have had to select history, then find the page, then delete it.  Now I can start typing in the awesome bar, hit the delete key when the page title shows up, and it is done.

When I use autocomplete and see that there are pacakges being proposed that I know I'll never use, if I were so inclined as to spend the time with the current klutzy implementation of filtering, I'd have to:

0. Press control-space and see lots of proposals I won't use.
1. Grab a pencil and write down all of the full package names that are relevant because I can't copy and paste them. 
2. Next I'd have to click Window, 
3. Click preferences, 
4. Click expand Java
5. Click expand appearance
6. Click type filters
7. Click add/add packages
8. Type in about 30-40 characters on average per namespace I'd like to filter
9. Repeat step 8 three to five times on average for each package I don't use.
10. Remember that next time I want to filter packages that it's such a !@#$ hassle that it's not worth ever doing again.

Or, if you'd accept this proposal.....

0. Click control-space and see lots of proposals I won't use.
1. Press cursor down to highlight a package I won't use.
2. Press delete to add it to filters.
3. Repeat steps 1-2 until I'm satisified.
Comment 4 Deepak Azad CLA 2012-07-29 22:16:09 EDT
Seems a reasonable request given that we do something similar for 'Step filters' - you can filter types and packages right from Debug view.
Comment 5 Dani Megert CLA 2012-07-30 01:50:14 EDT
> 2. Press delete to add it to filters.
We would at least have to ask whether to delete the member, type or package.
Comment 6 Glenview Jeff CLA 2012-07-30 08:20:01 EDT
I would far prefer it if you didn't; Firefox doesn't.  It's not an unrecoverable operation--you can go to the filters preferences to undo in the event you made a mistake.  If you really felt you need to add a confirmation, you could at least make it configurable and add a "don't ask me again" checkbox.
Comment 7 Martin Mathew CLA 2014-03-27 03:31:58 EDT
*** Bug 430064 has been marked as a duplicate of this bug. ***
Comment 8 Noopur Gupta CLA 2016-06-16 09:48:18 EDT
*** Bug 181171 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2018-06-07 09:48:54 EDT
*** Bug 430061 has been marked as a duplicate of this bug. ***
Comment 10 Noopur Gupta CLA 2020-05-04 03:06:38 EDT
*** Bug 562752 has been marked as a duplicate of this bug. ***