Restarting (or reloading the configuration) Eclipse-CS programmatically

I am trying to reconfigure the CheckStyle plugin for Eclipse (Eclipse-CS) from code (while Eclipse is working). So far, the only way I've found this is to replace the XML file with the configuration and reload the configuration manually.

Replacing an XML file is not the nifty solution I was hoping for, but it works; however, I still need a way to force Eclipse-CS to load the configuration file.

I was looking for a way to achieve this, but I have no ideas.

+7
source share
2 answers

I have been struggling with this lack of eclipse for many years, and so far I am convinced that this is truly impossible. You will need to add this function to eclipse-cs code, so it seems.

Sorry for the gloomy forecast. β€œCan't do it” is not really what you want for an answer, but it may save some people who google to resolve for a while.

+3
source

The Checkstyle settings page contains a small update button in the upper right corner. Click the button after you have changed your checkstyle.xml or suppressions.xml and the new configuration will be used.

The Checkstyle Preferences Refresh button
(source: rolf-engelhard.de )

Link: http://rolf-engelhard.de/2012/11/clearing-checkstyles-cache-in-eclipse

+17
source

Source: https://habr.com/ru/post/918666/


All Articles