import org.simantics.scl.runtime.function.Function1;
import org.simantics.scl.runtime.function.Function2;
import org.simantics.utils.threads.AWTThread;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
private static final long serialVersionUID = 8508750881358776559L;
+ private static final Logger LOGGER = LoggerFactory.getLogger(SVGNode.class);
protected String data = null;
protected String defaultData = null;
protected Point targetSize = null;
SVGDiagram d = diagramCache;
if (d != null) {
diagramCache = null;
+ dataHash = null;
SVGUniverse univ = SVGCache.getSVGUniverse();
if (univ.decRefCountAndClear(d.getXMLBase()) == 0) {
// Cleared!
e.setAttribute(ass.attributeNameOrId, ass.value);
}
} else {
- System.err.println("Element with id='" + ass.elementId + " was not found.");
+ LOGGER.warn("Element with id='" + ass.elementId + " was not found.");
}
}
if (!data.equals(documentCache) || diagramCache == null) {
dataHash = parseSVG();
if (diagramCache == null) {
- System.err.println("UNABLE TO PARSE SVG:\n" + data);
+ LOGGER.warn("UNABLE TO PARSE SVG:\n" + data);
return;
}
}