]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/SpreadsheetGraphUtils.java
Remove some prints
[simantics/platform.git] / bundles / org.simantics.spreadsheet.graph / src / org / simantics / spreadsheet / graph / SpreadsheetGraphUtils.java
index 976f2aa07c57ae0dfac018b3507c3ffad4b3a03c..52b7cab5cea0e542218d1a4ec666a0dbf7232f09 100644 (file)
@@ -182,12 +182,6 @@ public class SpreadsheetGraphUtils {
                        
         SpreadsheetSynchronizationEventHandler handler = new SpreadsheetSynchronizationEventHandler(graph, book);
         
-//        System.err.println("sessionName : " + sessionName);
-//        System.err.println("bookResource : " + graph.getURI(bookResource));
-//        System.err.println("configuration : " + configuration.getURI(graph));
-//        System.err.println("realm : " + realm);
-//        System.err.println("book : " + book);
-        
         if (changeFlags == null) {
             synchronizer.fullSynchronization(configuration, handler);
         } else {
@@ -207,14 +201,6 @@ public class SpreadsheetGraphUtils {
             synchronizer.partialSynchronization(configuration, handler, changeFlags);
         }
         
-//        book.accept(new InvalidateAll());
-//        realm.getNodeManager().refreshVariables();
-//        mapping.currentRevision = synchronizer.getHeadRevisionId();
-//        mapping.setTrustUids(true);
-        // Clean up queries
-//        QueryControl qc = g.getService(QueryControl.class);
-//        qc.flush(g);
-//        TimeLogger.log("Finished full synchronization");
         realm.getNodeManager().fireNodeListeners();
         return handler.getDidChanges();
         
@@ -492,7 +478,6 @@ public class SpreadsheetGraphUtils {
     }
     
     public static Variant extRefVariable(ReadGraph graph, Variable var) throws DatabaseException {
-        System.err.println("extRefVariable " + var.getURI(graph));
         return new Variant(Bindings.VOID, new ExternalRefVariable(graph, var));
     }
     
@@ -506,13 +491,11 @@ public class SpreadsheetGraphUtils {
         
         @Override
         public void listen(Object context, ExternalRefListener listener) {
-            System.err.println("listen " + listener);
             Simantics.getSession().asyncRequest(new UnaryRead<String, Variant>(uri) {
 
                 @Override
                 public Variant perform(ReadGraph graph) throws DatabaseException {
                     Variable variable = Variables.getVariable(graph, parameter);
-                    System.err.println("ExternalRef value for " + variable.getURI(graph));
                     return variable.getVariantValue(graph);
                 }
                 
@@ -520,7 +503,6 @@ public class SpreadsheetGraphUtils {
 
                 @Override
                 public void execute(Variant result) {
-                    System.err.println("execute " + result);
                     listener.newValue(result);
                 }
 
@@ -540,7 +522,6 @@ public class SpreadsheetGraphUtils {
     }
 
     public static Variant extRefActiveVariable(ReadGraph graph, Variable var) throws DatabaseException {
-        System.err.println("extRefActiveVariable " + var.getURI(graph));
         return new Variant(Bindings.VOID, new ExternalRefActiveVariable(graph, var));
     }
     
@@ -554,24 +535,19 @@ public class SpreadsheetGraphUtils {
         
         @Override
         public void listen(Object context, ExternalRefListener listener) {
-            System.err.println("listen " + context + " " + listener);
             Simantics.getSession().asyncRequest(new BinaryRead<String, String, Variant>((String)context, uri) {
 
                 @Override
                 public Variant perform(ReadGraph graph) throws DatabaseException {
                     Variable contextVariable = Variables.getVariable(graph, parameter);
-                    System.err.println("extref1 " + contextVariable.getURI(graph));
                     Variable configVariable = Variables.getVariable(graph, parameter2);
-                    System.err.println("extref2 " + configVariable.getURI(graph));
                     Variable activeVariable = Variables.switchPossibleContext(graph, configVariable, contextVariable.getRepresents(graph));
-                    System.err.println("ExternalRef value for " + activeVariable.getURI(graph));
                     return activeVariable.getVariantValue(graph);
                 }
             }, new Listener<Variant>() {
 
                 @Override
                 public void execute(Variant result) {
-                    System.err.println("execute " + result);
                     listener.newValue(result);
                 }