KacerCZ commented on pull request #2755: URL: https://github.com/apache/netbeans/pull/2755#issuecomment-807481429
I'll try to explain my use cases. I work on projects where classes and interfaces from root namespace are not imported. For example `\DateTime` or `\Countable` are never imported and fully qualified name is always used. Also there are other types which are not imported - typically objects passed only in constructor or classes used infrequently. This leads to situations where list of suggested imports contains types which I don't want to import. Running "Fix Uses" action just to sort existing and remove unused imports I have to change all suggestions to "Don't use type" one by one. "Clear Suggestions" button simplifies this change to one click. Another use case is when I want to import only a few of suggested types in existing code. Again "Clear Suggestions" changes all proposed changes to "Don't use type" and those few for import I change back to import manually. Types marked as "Don't use type" are left in source code without change and only the selected types are imported. Its useful in case class is used on many places in code - action replaces all occurrences with alias. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
