X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2FLazyGraphLabeler.java;h=639c90391f8c73351cb9c2e86211e7755d5953d0;hp=cf410444ed7753fc9a4d6df73882211fdc811f9e;hb=9f0fd59be54719b1fe9322d8fd37e4950857308c;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07 diff --git a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/LazyGraphLabeler.java b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/LazyGraphLabeler.java index cf410444e..639c90391 100644 --- a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/LazyGraphLabeler.java +++ b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/LazyGraphLabeler.java @@ -21,10 +21,12 @@ import org.simantics.browsing.ui.PrimitiveQueryUpdater; import org.simantics.browsing.ui.common.labelers.LabelerContent; import org.simantics.browsing.ui.common.labelers.LabelerStub; import org.simantics.browsing.ui.graph.impl.request.ResourceQuery; +import org.simantics.db.AsyncReadGraph; import org.simantics.db.ReadGraph; import org.simantics.db.exception.DatabaseException; import org.simantics.db.procedure.Listener; import org.simantics.utils.ui.ErrorLogger; +import org.slf4j.Logger; public abstract class LazyGraphLabeler extends LabelerStub { @@ -80,8 +82,7 @@ public abstract class LazyGraphLabeler extends LabelerStub { @Override public void exception(Throwable t) { - System.err.println("LazyGraphLabeler2: "); - t.printStackTrace(); + getLogger().error("LazyGraphLabeler2: ", t); } }; @@ -92,7 +93,7 @@ public abstract class LazyGraphLabeler extends LabelerStub { if (content == LabelerContent.NO_CONTENT) { - final DataSource source = updater.getDataSource(ReadGraph.class); + final DataSource source = updater.getDataSource(AsyncReadGraph.class); assert(source != null); source.schedule(graph -> graph.asyncRequest(labelQuery, procedure)); @@ -116,4 +117,5 @@ public abstract class LazyGraphLabeler extends LabelerStub { } + public abstract Logger getLogger(); }