X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fgallery%2FGalleryViewer.java;fp=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fgallery%2FGalleryViewer.java;h=2e8ad5b66f434345ef03e435a5440bb409403fb2;hp=08ccf1f8769104812bd28e42f2d3ae5fec9699ab;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java index 08ccf1f87..2e8ad5b66 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/gallery/GalleryViewer.java @@ -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 @@ -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; }