]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/UpdateRunner.java
Usability fixes for GraphExplorerImpl -related WB selection propagation
[simantics/platform.git] / bundles / org.simantics.browsing.ui.swt / src / org / simantics / browsing / ui / swt / UpdateRunner.java
index 72c17ed747fe5f8d41f1e670cc5358993324a12d..80ef2bf3919ee245be32db9bf4249d288c2d8370 100644 (file)
@@ -21,8 +21,9 @@ import org.simantics.browsing.ui.CheckedState;
 import org.simantics.browsing.ui.NodeContext;
 import org.simantics.browsing.ui.NodeQueryManager;
 import org.simantics.browsing.ui.common.internal.GENodeQueryManager;
-import org.simantics.browsing.ui.common.internal.IGraphExplorerContext;
 import org.simantics.browsing.ui.content.PrunedChildrenResult;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * This class is responsible for updating the {@link TreeItem}s contained by the
@@ -36,21 +37,20 @@ import org.simantics.browsing.ui.content.PrunedChildrenResult;
  */
 class UpdateRunner implements Runnable {
 
+    private static final Logger LOGGER = LoggerFactory.getLogger(UpdateRunner.class);
+
     final GraphExplorerImpl ge;
-    //final IGraphExplorerContext geContext;
 
-    UpdateRunner(GraphExplorerImpl ge, IGraphExplorerContext geContext) {
+    UpdateRunner(GraphExplorerImpl ge) {
         this.ge = ge;
-      //  this.geContext = geContext;
     }
 
     public void run() {
        try {
                doRun();
        } catch (Throwable t) {
-               t.printStackTrace();
+               LOGGER.error("", t);
        }
-       
     }
 
     public void doRun() {