History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18113
Type: New Feature New Feature
Status: Open Open
Assignee: Dmitry Jemerov
Reporter: Esko Luontola
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Allow exceptions to "Exclude from Import and Completion", e.g. exclude "com.sun" but include "com.sun.sgs"

Created: 16 May 08 18:21   Updated: 16 May 08 18:48
Component/s: Editor. Code Completion

Build: 7,757
Severity: Extreme


 Description  « Hide
Continued from http://www.jetbrains.net/jira/browse/IDEA-18112

"Exclude from Import and Completion" has at least these use cases:

  • Exclude all unwanted "sun" and "com.sun" packages which come with the JDK. Nobody should use those classes directly because they can change from one JDK version to another.
  • Exclude classes from specific project libraries that are used by a different component of the project, or maybe even from some parts of my project that are not related to my code. (But because the exclude settings are system wide, this use case is not properly supported.)

The problem is that when you need to use packages such as "com.sun.sgs" (used by Project Darkstar http://www.projectdarkstar.com/), but at the same time you want to ignore all of JDK's "com.sun" packages, IDEA does not make this possible. This causes the exclude feature to be unusable. And because the exclude settings are system wide instead of being project specific, this means that you can not use them in any other project either.

Suggested solution:

Allow more complicated expressions in the exclude list. For example "com.sun -com.sun.sgs" to exclude all below com.sun except com.sun.sgs. Or make it possible to select the scope of the expressions: JDK, global library, project library, module library, project files.



 All   Comments   Work Log   Change History      Sort Order:
Sascha Weinreuter - 16 May 08 18:48
I had/have this problem with the JNA library, though I wouldn't classify it as extreme.