
|
If you were logged in you would be able to see more operations.
|
|
|
|
I'd like to have a set of "favorite" classes which I commonly static import from. If I attempted to use as static method from such a class without first importing it, idea should automatically offer to include the static import. The most common class for this would be org.junit.Assert, if you are using JUnit 4. In that case, all I would have to do is type "assertTrue", and IDEA would offer to include a static import of org.junit.Assert.* . Otherwise, adding JUnit 4 assertions to a package is a fair pain in the ass, and often most simply done by editing import statements manually. For extra bonus points, static members on static import favorites should be available for completion.
|
|
Description
|
I'd like to have a set of "favorite" classes which I commonly static import from. If I attempted to use as static method from such a class without first importing it, idea should automatically offer to include the static import. The most common class for this would be org.junit.Assert, if you are using JUnit 4. In that case, all I would have to do is type "assertTrue", and IDEA would offer to include a static import of org.junit.Assert.* . Otherwise, adding JUnit 4 assertions to a package is a fair pain in the ass, and often most simply done by editing import statements manually. For extra bonus points, static members on static import favorites should be available for completion. |
Show » |
| There are no comments yet on this issue.
|
|