import org.simantics.modeling.ui.Activator;
import org.simantics.utils.DataContainer;
import org.simantics.utils.threads.ThreadUtils;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
public class DiagramViewerLoadJob extends DatabaseJob {
+ private static final Logger LOGGER = LoggerFactory.getLogger(DiagramViewerLoadJob.class);
+
private static final boolean PROFILE = false;
private DiagramViewer viewer;
END(task);
} catch (Throwable t) {
viewer = null;
+ LOGGER.error("Failed to complete loading of diagram {} in the canvas thread", viewer.diagramResource, t);
}
}
});