From: luukkainen Date: Tue, 25 Nov 2008 08:24:39 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@7969 ac1ea38d... X-Git-Tag: simantics-1.19.0~20^2~19 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=39d031c7686c8ac90b39e6d6ae2609736bcd11be;p=simantics%2F3d.git git-svn-id: https://www.simantics.org/svn/simantics/3d/branches/dev@7969 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ScenegraphAdapterImpl.java b/org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ScenegraphAdapterImpl.java index eb243735..c7ba95db 100644 --- a/org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ScenegraphAdapterImpl.java +++ b/org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/base/ScenegraphAdapterImpl.java @@ -17,7 +17,6 @@ import java.util.HashSet; import java.util.List; import java.util.Queue; import java.util.Set; -import java.util.Stack; import java.util.concurrent.ConcurrentLinkedQueue; import org.simantics.db.AbstractQuery; @@ -473,14 +472,10 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter { public abstract class NodeQuery extends AbstractQuery{ protected Resource nodeResource; private boolean disposed = false; - private IQueryListener listener; - //private OverridingTransactionRunner runner; public NodeQuery(Resource r) { this.nodeResource = r; - //runner = new OverridingTransactionRunner(session,true); - } protected abstract Object compute2(Graph graph); @@ -508,7 +503,6 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter { if (disposed) throw new RuntimeException("Updating disposed query"); //return; transactionRunner.run(new GraphRequestAdapter() { - //session.asyncWrite(new GraphRequestAdapter() { @Override public GraphRequestStatus perform(Graph g) throws Exception { if (!disposed) { @@ -543,32 +537,10 @@ public abstract class ScenegraphAdapterImpl implements ScenegraphAdapter { if (DEBUG) System.out.println("NodeQuery " + nodeResource + " disposed()" + " " + this.getClass()); } - //public abstract NodeQuery instantiateQuery(Resource node); - //public abstract void attach(); - @Override public boolean isDisposed() { return disposed; } - - @Override - public IQueryListener getListener() { - if (listener == null) { - listener = new IQueryListener() { - @Override - public boolean isDisposed() { - return NodeQuery.this.disposed; - } - - @Override - public void resultChangedRaw(Object oldResult, Object newResult) { - NodeQuery.this.resultChangedRaw(oldResult, newResult); - } - }; - } - return listener; - } - } /**