From e65b0f231dbe52c8eef971861df4173710e490cf Mon Sep 17 00:00:00 2001 From: villberg Date: Fri, 8 Jul 2011 06:19:52 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@21431 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/project/SysdynProject.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java index 366e0038..f5720d8b 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java @@ -123,31 +123,33 @@ public class SysdynProject extends AbstractProjectFeature { { Resource newCell = graph.newResource(); - graph.claim(newCell, L0.InstanceOf, null, sr.DimensionsCell); + graph.claim(newCell, L0.InstanceOf, null, sr.Cell); graph.claimLiteral(newCell, L0.HasName, L0.NameOf, L0.String, "Dimensions", Bindings.STRING); - graph.addLiteral(newCell, sr.FitColumns, sr.FitColumnsOf, L0.Boolean, true, Bindings.BOOLEAN); - graph.addLiteral(newCell, sr.FitRows, sr.FitRowsOf, L0.Boolean, true, Bindings.BOOLEAN); + graph.addLiteral(newCell, sr.FitColumns, sr.FitColumnsOf, L0.Boolean, false, Bindings.BOOLEAN); + graph.addLiteral(newCell, sr.FitRows, sr.FitRowsOf, L0.Boolean, false, Bindings.BOOLEAN); + graph.addLiteral(newCell, sr.ColumnCount, sr.ColumnCountOf, L0.Integer, 128, Bindings.INTEGER); + graph.addLiteral(newCell, sr.RowCount, sr.RowCountOf, L0.Integer, 256, Bindings.INTEGER); graph.claim(result, L0.ConsistsOf, L0.PartOf, newCell); } { Resource newCell = graph.newResource(); + graph.claim(newCell, L0.InstanceOf, null, sr.Cell); graph.claimLiteral(newCell, L0.HasName, L0.NameOf, L0.String, "Headers", Bindings.STRING); - graph.claim(newCell, L0.InstanceOf, null, sr.HeadersCell); - graph.addLiteral(newCell, sr.ColumnLabels, sr.ColumnLabelsOf, L0.StringArray, colNames, Bindings.getBindingUnchecked(String[].class)); + graph.addLiteral(newCell, sr.ColumnLabels, sr.ColumnLabelsOf, L0.StringArray, colNames, Bindings.STRING_ARRAY); graph.addLiteral(newCell, sr.ColumnWidths, sr.ColumnWidthsOf, L0.IntegerArray, colWidths, Bindings.INT_ARRAY); graph.claim(result, L0.ConsistsOf, L0.PartOf, newCell); } { - double[] doubles = new double[10*10]; - for(int i=0;i<10*10;i++) doubles[i] = i; + double[] doubles = new double[10*2]; + for(int i=0;i<10*2;i++) doubles[i] = i; Resource newCell = graph.newResource(); graph.claim(newCell, L0.InstanceOf, null, sr.DoubleArrayCell); graph.addLiteral(newCell, sr.DoubleArrayCell_HasWidth, sr.DoubleArrayCell_HasWidth_Inverse, L0.Integer, 10, Bindings.INTEGER); - graph.addLiteral(newCell, sr.HasLocation, sr.HasLocation_Inverse, L0.String, "A1", Bindings.STRING); + graph.addLiteral(newCell, sr.HasLocation, sr.HasLocation_Inverse, L0.String, "B2", Bindings.STRING); graph.addLiteral(newCell, sr.DoubleArrayCell_HasDoubleArray, sr.DoubleArrayCell_HasDoubleArray_Inverse, L0.DoubleArray, doubles, Bindings.DOUBLE_ARRAY); graph.claim(result, L0.HasChildVariables, L0.HasChildVariables_Inverse, newCell); -- 2.47.1