public class ConsoleSCLReportingHandler implements SCLReportingHandler {
+ private static final boolean PRINT_TO_IDE = false;
+
private final IConsole console;
public ConsoleSCLReportingHandler(IConsole console) {
@Override
public void print(String text) {
+ if(PRINT_TO_IDE) System.err.println("simupedia console print: " + text);
console.addMessage(text);
}
@Override
public void printError(String error) {
+ if(PRINT_TO_IDE) System.err.println("simupedia console print error: " + error);
console.addMessage(error);
}
@Override
public void printCommand(String command) {
+ if(PRINT_TO_IDE) System.err.println("simupedia console print command: " + command);
console.addMessage(command);
}