-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55f700d
commit b447ed2
Showing
1 changed file
with
12 additions
and
6 deletions.
There are no files selected for viewing
18 changes: 12 additions & 6 deletions
18
ide-configs/eclipse/hawkular-eclipse-preferences-java-codestyle-organizeimports.importorder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#Organize Import Order | ||
#Fri Jan 16 11:30:31 EST 2015 | ||
3=com | ||
2=org | ||
1=javax | ||
0=java | ||
#Organize Import Order | ||
#Wed Mar 18 17:17:04 EDT 2015 | ||
9= | ||
8=com | ||
7=org | ||
6=javax | ||
5=java | ||
4=\# | ||
3=\#com | ||
2=\#org | ||
1=\#javax | ||
0=\#java |
b447ed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmazzitelli from what I understand, static imports should follow the same order as usual imports, right? By the way, should imports categories be separated by blank lines? I'm asking because @lucasponce maintains an IJ settings file and this might be of interest.
b447ed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would think they should follow the same alphabetic order as usual imports, yes.
As for separating by blank lines, I don't think eclipse actually has a control setting for that - at least, I've never see it. I think Eclipse always puts a blank line between categories of imports - there is no way to tell it otherwise (unless there is a setting somewhere I don't know of).
b447ed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, static imports are now configured to go at the top, above normal imports. so right now this eclipse file configures is to be:
static java.*
static javax.*
static org.*
static com.*
static * (all other unmatched imports)
java .*
javax .*
org .*
com .*
b447ed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have sent an update in the settings.jar for IntelliJ with the same imports structure.
Please let me know, or feel free to add an update with the settings.jar.
By the way, we have some statcis imports code and I have always I see them on the bottom not on the top, so probably we can have some commits with just those changes.
b447ed2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll review PR #14