fixerArgs.set(0, fileToFix);
Logger.debug("Running cs-fixer: " + fixerArgs.get(1));
monitor.setTaskName("Fixing " + fixerArgs.get(1));
try {
ScriptLauncher launcher = launcherManager.getLauncher(FixerEnvironmentFactory.LAUNCHER_KEY, source.getScriptProject().getProject());
launcher.addResponseListener(new ExecutionResponseAdapter() {
@Override
public void executionMessage(String message) {
System.err.println(message);
}
});
launcher.launch("fix", fixerArgs.toArray(new String[fixerArgs.size()]));
} catch (Exception e) {
e.printStackTrace();
}
source.getUnderlyingResource().refreshLocal(IResource.DEPTH_ZERO, null);