]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.server/src/org/simantics/document/server/ConsoleSCLReportingHandler.java
Fixed multiple issues causing dangling references to discarded queries
[simantics/platform.git] / bundles / org.simantics.document.server / src / org / simantics / document / server / ConsoleSCLReportingHandler.java
index e227a89ca2472a8c0d597d7b859c5ab17aff3d23..135d842801fd92852c3591f86fa5cda628c3e800 100644 (file)
@@ -5,6 +5,8 @@ import org.simantics.scl.runtime.reporting.SCLReportingHandler;
 
 public class ConsoleSCLReportingHandler implements SCLReportingHandler {
 
+       private static final boolean PRINT_TO_IDE = true;
+       
        private final IConsole console;
 
        public ConsoleSCLReportingHandler(IConsole console) {
@@ -13,16 +15,19 @@ public class ConsoleSCLReportingHandler implements SCLReportingHandler {
 
        @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);
        }