X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdnd%2FDragPainter.java;fp=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdnd%2FDragPainter.java;h=feb712cd31865f107166cb487cd798161e0b6e40;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hp=3ebccf136a158e8fd9295f4cb9fe6a89f37b0059;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/DragPainter.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/DragPainter.java index 3ebccf136..feb712cd3 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/DragPainter.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/dnd/DragPainter.java @@ -31,6 +31,8 @@ import org.simantics.scenegraph.g2d.nodes.SingleElementNode; import org.simantics.scenegraph.g2d.snap.ISnapAdvisor; import org.simantics.utils.datastructures.context.IContext; import org.simantics.utils.datastructures.context.IContextListener; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * This participant paints an array of icons of a drag operation. @@ -38,6 +40,7 @@ import org.simantics.utils.datastructures.context.IContextListener; * @author Toni Kalajainen */ public class DragPainter extends AbstractCanvasParticipant { + private static final Logger LOGGER = LoggerFactory.getLogger(DragPainter.class); // Priority of drag event, eats ecs key public final static int DRAG_EVENT_PRIORITY = Integer.MAX_VALUE - 1500; public final static int DRAG_PAINT_PRIORITY = Integer.MAX_VALUE - 1100; @@ -188,7 +191,7 @@ public class DragPainter extends AbstractCanvasParticipant { IG2DNode itemHolder = node.getNode(""+item.hashCode()); if (itemHolder != null && !(itemHolder instanceof SingleElementNode)) { - System.err.println("BUG: item hash codes collide within the dragged item context - found unrecognized item " + itemHolder + " with node id '" + item.hashCode() + "'"); + LOGGER.error("BUG: item hash codes collide within the dragged item context - found unrecognized item " + itemHolder + " with node id '" + item.hashCode() + "'"); continue; }