1 package org.simantics.document.server;
3 import org.simantics.document.server.io.IConsole;
4 import org.simantics.scl.runtime.reporting.SCLReportingHandler;
6 public class ConsoleSCLReportingHandler implements SCLReportingHandler {
8 private final IConsole console;
10 public ConsoleSCLReportingHandler(IConsole console) {
11 this.console = console;
15 public void print(String text) {
16 console.addMessage(text);
20 public void printError(String error) {
21 console.addMessage(error);
25 public void printCommand(String command) {
26 console.addMessage(command);
30 public void didWork(double amount) {
31 console.addMessage("didWork " + amount);