]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / gallery / GalleryViewer.java
index 08ccf1f8769104812bd28e42f2d3ae5fec9699ab..2e8ad5b66f434345ef03e435a5440bb409403fb2 100644 (file)
@@ -103,6 +103,8 @@ import org.simantics.utils.threads.SWTThread;
 import org.simantics.utils.threads.ThreadUtils;
 import org.simantics.utils.threads.logger.ITask;
 import org.simantics.utils.threads.logger.ThreadLogger;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
@@ -110,6 +112,7 @@ import org.simantics.utils.threads.logger.ThreadLogger;
  */
 public class GalleryViewer extends ContentViewer {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(GalleryViewer.class);
     /**
      * A hint key for storing a GalleryViewer within the hint stack of
      * {@link GalleryViewer}'s {@link ICanvasContext}.
@@ -598,7 +601,7 @@ public class GalleryViewer extends ContentViewer {
      */
     void refreshElementSizes() {
         if (awtComponent == null) {
-            System.err.println("GalleryViewer.refreshElementSizes: awtComponent is null");
+            LOGGER.error("GalleryViewer.refreshElementSizes: awtComponent is null");
             return;
         }