Menu

#157 Button to "Reload" a Local Check Configuration of Type Remote

6.9.0
closed
nobody
None
1
2016-05-12
2016-05-12
No

Lars first of all thank you for your work on eclipse-cs! Here is a low prio. New Feature Request:

It would be handy if the Checkstyle (Project) Properties Local Check Configuration UI had a "Reload" button (right after where there is New.. Properties.. Configure.. Copy.. Remove). Upon clicking this button, it should, well, reload the respective Checks XML (and rerun Validations to refresh).

This would be very useful in particular for Type Remote Configuration, in the following use case (used by e.g. https://github.com/vorburger/opendaylight-eclipse-setup): You have a small dedicated project with the Checkstyle XML. That is in a Maven repo. You use https://github.com/m2e-code-quality/m2e-code-quality which configures Eclipse Checkstyle, in line with Maven - it actually automatically reads the ODL Checkstyle configuration from the respective JAR in the local m2 repo, and set is as a Remote Configuration.

Now to make changes, I open that small dedicated project in the workspace, and touch the XML somehow. Then I mvn install that. Now I'd like Eclipse Checkstyle to pick it up. Currently, I just restart Eclipse every time. If there was a Reload button, one wouldn't have to.

Discussion

  • Michael Vorburger

    Actually please close this request, I might have been shooting too fast... it looks like it actually auto-reloads (or proably just doesn't cache at all) - I can now see that changes seem to be taken into account even without restarting Eclipse..

     
  • Lars Koedderitzsch

    Yes, indeed eclipse-cs also considers the lastModified flag of a remote resource - if it is available that is. I am not entirely sure this is true for JarURLConnections but apparently it seems to work for you.

     
  • Lars Koedderitzsch

    • status: open --> closed
     

Log in to post a comment.