Also fixed an NPE from org.simantics.platform.ui.internal.Activator.stop
gitlab #437
Change-Id: I83e5d08d49ee0f97ac6c81987054ffa01b916516
SimanticsConsole sc = new SimanticsConsole();
ConsolePlugin.getDefault().getConsoleManager().addConsoles(new SimanticsConsole[] {sc});
+ sc.activate();
return sc;
}
* Semantum Oy - initial API and implementation
*******************************************************************************/
package org.simantics.platform.ui.internal;
+
import java.io.PrintWriter;
import java.io.StringWriter;
@Override
public void stop(BundleContext context) throws Exception {
- context = null;
+ this.context = null;
super.stop(context);
}
b.append('[');
b.append(formatter.format(new Date(e.getTimeStamp())));
b.append("]: ");
- b.append(e.getMessage());
+ b.append(e.getFormattedMessage());
console.write(b.toString());
}