]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/participant/TerminalPainter.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / diagram / participant / TerminalPainter.java
index e4c7ac2011e0b0dcf2a70f29dd9dc800e8593a22..39baa912c6cfc99724aaa09b6c40a57b543af020 100644 (file)
@@ -43,6 +43,8 @@ import org.simantics.utils.datastructures.hints.IHintListener;
 import org.simantics.utils.datastructures.hints.IHintObservable;
 import org.simantics.utils.datastructures.hints.IHintContext.Key;
 import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * Paints terminals of elements.
@@ -51,6 +53,7 @@ import org.simantics.utils.datastructures.hints.IHintContext.KeyOf;
  */
 public class TerminalPainter extends AbstractDiagramParticipant {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(TerminalPainter.class);
     public static final int PAINT_PRIORITY = ElementPainter.ELEMENT_PAINT_PRIORITY + 10;
 
     public interface TerminalHoverStrategy {
@@ -196,7 +199,7 @@ public class TerminalPainter extends AbstractDiagramParticipant {
 
                 AffineTransform invTx = util.getInverseTransform();
                 if (invTx == null) {
-                    System.err.println("NO CANVAS TRANSFORM INVERSE AVAILABLE, CANVAS TRANSFORM IS: " + util.getTransform());
+                    LOGGER.warn("NO CANVAS TRANSFORM INVERSE AVAILABLE, CANVAS TRANSFORM IS: " + util.getTransform());
                     return;
                 }