Bug 562752 - Add Type Filter directly from Organize Imports
Summary: Add Type Filter directly from Organize Imports
Status: CLOSED DUPLICATE of bug 386125
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.15   Edit
Hardware: Macintosh All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-03 13:52 EDT by John Churchill CLA
Modified: 2020-05-04 03:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Churchill CLA 2020-05-03 13:52:52 EDT
This is a JDT UI feature request.

When organizing imports, the list frequently fills up with third-party classes that i will never use. For instance, Assert suggests org.junit.Assert (the one I want), junit.framework.Assert, org.assertj.core.api.Assert, and org.springframework.util.Assert.

To streamline future organize imports, I need to close the organize imports dialog, go to type filters, and type a filter in manually. I might forget the ".util." in org.springframework.util.Assert, so I better write that down since I can't copy and paste from the other dialog. And if I use wildcards, I risk filtering something I will need later. In other words, it's a lot of manual, error-prone work. Or I can just leave it alone and have to select junit.framework.Assert manually ten times a day.

What I would like to see is a way to right-click on org.springframework.util.Assert and add it to the type filters without leaving the Organize Imports dialog. That would be a big time and frustration saver for me. Prompting me with the opportunity to turn the fully qualified name into a wildcard would be a bonus.
Comment 1 Noopur Gupta CLA 2020-05-04 03:05:12 EDT

*** This bug has been marked as a duplicate of bug 323941 ***
Comment 2 Noopur Gupta CLA 2020-05-04 03:06:38 EDT

*** This bug has been marked as a duplicate of bug 386125 ***