-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NETBEANS-5661] - Added regular expression window and hint #2953
Conversation
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 reviewed only code style.
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegex.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegex.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegex.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
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 provided some minor comments for your code but in general it looks good to me. Before approving this PR I would recommend though to:
- rename the UI widgets to meaningful names (not jLabel1 etc.) as @junichi11 already mentioned above
- listen to keystrokes also in the jTextArea1 ;) so that if one modifies the regular expression it immediately reevaluates the example
- take a look at failed unit tests to avoid unwanted regressions
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegex.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegex.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
@mishrasandeep |
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.
LGTM
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.
Looks correct to me.
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.
Thanks for addressing my previous comments. I have provided some more findings. Otherwise I am fine with the work and approve it.
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/Bundle.properties
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/Bundle.properties
Outdated
Show resolved
Hide resolved
9e6ad48
to
67b9ea2
Compare
@junichi11 |
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.
Could you please check to format (ranges of your changes) again? (I didn't take a look at all files.)
java/java.hints/src/org/netbeans/modules/java/hints/jdk/Regexp.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/Regexp.java
Outdated
Show resolved
Hide resolved
java/java.hints/src/org/netbeans/modules/java/hints/jdk/Regexp.java
Outdated
Show resolved
Hide resolved
Maybe, We should also update this file: https://github.com/apache/netbeans/blob/master/java/java.hints/licenseinfo.xml @matthiasblaesing Aren't the license of png files checked via CI(RAT)? |
@junichi11 should I go ahead and update the file? |
java/java.hints/src/org/netbeans/modules/java/hints/jdk/CheckRegexTopComponent.java
Outdated
Show resolved
Hide resolved
@mishrasandeep Yes. Let's update it for your new png files. |
@junichi11 have updated the license file |
Is it possible to include this in |
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.
@mishrasandeep Thank you for fixing it. I reviewed only code style.
Could you please squash again?
@sdedic @jkovalsky @Akshay-Gupta-Oracle @singh-akhilesh |
Should be - it's a timeout (happens sometimes). |
4e0957d
to
0eff92f
Compare
Too often :D, Let's merge this |
https://issues.apache.org/jira/browse/NETBEANS-5661 Adding a feature for testing the valid values for a Regular Expression in the IDE itself.
Modified "Malformed Regexp" (shows invalid regular expression description) Hint to severity error instead of warning and scan for value of the identifiers.