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.
* @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;
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;
}