X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2Ffunction%2FAll.java;fp=bundles%2Forg.simantics.spreadsheet.graph%2Fsrc%2Forg%2Fsimantics%2Fspreadsheet%2Fgraph%2Ffunction%2FAll.java;h=865a60ebe8c89e0d56eeb95024be98ceda1512e9;hb=7cebb3dd8710ce3c4a2be0f6c8993a072dba6b37;hp=9b0f708df8c11628fbb1c13af1dabf76bf46b669;hpb=f56d8b5c5225ef421009dadca4cec0ac56aef019;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/function/All.java b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/function/All.java index 9b0f708df..865a60ebe 100644 --- a/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/function/All.java +++ b/bundles/org.simantics.spreadsheet.graph/src/org/simantics/spreadsheet/graph/function/All.java @@ -113,7 +113,6 @@ public class All { @Override public void setValue(WriteGraph graph, Variable context, Object value, Binding binding) throws DatabaseException { - System.out.println("contentValueAccessor.context=" + context.getURI(graph)); if(value instanceof String) { // Expressions are given as string @@ -134,7 +133,6 @@ public class All { } else { Variable cell = context.getParent(graph); - System.out.println("setValue : " + cell.getURI(graph)); String formula = text.substring(1); @@ -153,7 +151,7 @@ public class All { Variant v = new Variant(ExcelFormula.BINDING, new ExcelFormula(formula)); Layer0Utils.claimLiteral(graph, cell.getRepresents(graph), SHEET.Cell_content, SHEET.Cell_content_Inverse, Layer0.getInstance(graph).Variant, v, Bindings.VARIANT); - + } } else { @@ -195,9 +193,6 @@ public class All { private void setValueToEngine(WriteGraph graph, Variable cell, Variable context, Object value, Binding binding) throws DatabaseException { Variable sheet = cell.getParent(graph); - if(Bindings.STRING.equals(binding) && !(value instanceof String)) - System.err.println("asd"); - SpreadsheetResource SHEET = SpreadsheetResource.getInstance(graph); while(!sheet.getType(graph).equals(SHEET.Spreadsheet)) { @@ -433,17 +428,11 @@ public class All { return super.getVariable(graph, context, name); -// TMap map = new THashMap(); -// getVariables(graph, context, map); -// return map.get(name); - } @Override public Map getVariables(ReadGraph graph, Variable context, Map map) throws DatabaseException { - System.err.println("getVariables " + context.getURI(graph)); - if(ProxyVariables.isProxy(graph, context)) return StandardChildDomainChildren.getStandardChildDomainChildVariables(graph, context, Collections.emptyMap(), map); @@ -751,9 +740,7 @@ public class All { @SCLValue(type = "ReadGraph -> Resource -> Variable -> CellEditor") public static CellEditor textCellEditor(ReadGraph graph, Resource resource, final Variable context_) throws DatabaseException { - System.out.println("Context URI : " + context_.getURI(graph)); Variable cells = context_.getParent(graph); - System.out.println("Cell URI : " + cells.getURI(graph)); return new GraphCellEditorAdapter(cells) { @@ -777,7 +764,6 @@ public class All { if (runCell != null) runCell.setPropertyValue(graph, SHEET.Cell_content, value, Bindings.VARIANT); } else if(ClientModel.CONTENT_EXPRESSION.equals(property)) { - System.err.println("cell: " + cell.getURI(graph)); cell.setPropertyValue(graph, SHEET.Cell_content, value, Bindings.STRING); Variable runCell = null; Object transactionContext = transaction.getContext(); @@ -920,7 +906,6 @@ public class All { runCell = Variables.switchRealization(graph, cell, context.getRepresents(graph), context); } - //Variant content = cell.getPropertyValue(graph, SHEET.Cell_content, Bindings.VARIANT); Object object = cell.getPropertyValue(graph, SHEET.Cell_content); Variant content = null; if (object instanceof Variant) {