]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@21431 ac1ea38d-2e2b...
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 8 Jul 2011 06:19:52 +0000 (06:19 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 8 Jul 2011 06:19:52 +0000 (06:19 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProject.java

index 366e0038daa3d9613217c6e8ebfdb36a9835fcbf..f5720d8b33df2f7a35602bc2aab016f4e99204b7 100644 (file)
@@ -123,31 +123,33 @@ public class SysdynProject extends AbstractProjectFeature {
 \r
                {\r
                        Resource newCell = graph.newResource();\r
-                       graph.claim(newCell, L0.InstanceOf, null, sr.DimensionsCell);\r
+                       graph.claim(newCell, L0.InstanceOf, null, sr.Cell);\r
                graph.claimLiteral(newCell, L0.HasName, L0.NameOf, L0.String, "Dimensions", Bindings.STRING);\r
-                graph.addLiteral(newCell, sr.FitColumns, sr.FitColumnsOf, L0.Boolean, true, Bindings.BOOLEAN);\r
-                graph.addLiteral(newCell, sr.FitRows, sr.FitRowsOf, L0.Boolean, true, Bindings.BOOLEAN);\r
+                graph.addLiteral(newCell, sr.FitColumns, sr.FitColumnsOf, L0.Boolean, false, Bindings.BOOLEAN);\r
+                graph.addLiteral(newCell, sr.FitRows, sr.FitRowsOf, L0.Boolean, false, Bindings.BOOLEAN);\r
+                graph.addLiteral(newCell, sr.ColumnCount, sr.ColumnCountOf, L0.Integer, 128, Bindings.INTEGER);\r
+                graph.addLiteral(newCell, sr.RowCount, sr.RowCountOf, L0.Integer, 256, Bindings.INTEGER);\r
                        graph.claim(result, L0.ConsistsOf, L0.PartOf, newCell);\r
                }\r
 \r
                {\r
                        Resource newCell = graph.newResource();\r
+                       graph.claim(newCell, L0.InstanceOf, null, sr.Cell);\r
                graph.claimLiteral(newCell, L0.HasName, L0.NameOf, L0.String, "Headers", Bindings.STRING);\r
-                       graph.claim(newCell, L0.InstanceOf, null, sr.HeadersCell);\r
-                       graph.addLiteral(newCell, sr.ColumnLabels, sr.ColumnLabelsOf, L0.StringArray, colNames, Bindings.getBindingUnchecked(String[].class));\r
+                       graph.addLiteral(newCell, sr.ColumnLabels, sr.ColumnLabelsOf, L0.StringArray, colNames, Bindings.STRING_ARRAY);\r
                        graph.addLiteral(newCell, sr.ColumnWidths, sr.ColumnWidthsOf, L0.IntegerArray, colWidths, Bindings.INT_ARRAY);\r
                        graph.claim(result, L0.ConsistsOf, L0.PartOf, newCell);\r
                }\r
 \r
                {\r
                        \r
-                       double[] doubles = new double[10*10];\r
-                       for(int i=0;i<10*10;i++) doubles[i] = i;\r
+                       double[] doubles = new double[10*2];\r
+                       for(int i=0;i<10*2;i++) doubles[i] = i;\r
                        \r
                        Resource newCell = graph.newResource();\r
                        graph.claim(newCell, L0.InstanceOf, null, sr.DoubleArrayCell);\r
                        graph.addLiteral(newCell, sr.DoubleArrayCell_HasWidth, sr.DoubleArrayCell_HasWidth_Inverse, L0.Integer, 10, Bindings.INTEGER);\r
-                       graph.addLiteral(newCell, sr.HasLocation, sr.HasLocation_Inverse, L0.String, "A1", Bindings.STRING);\r
+                       graph.addLiteral(newCell, sr.HasLocation, sr.HasLocation_Inverse, L0.String, "B2", Bindings.STRING);\r
                        graph.addLiteral(newCell, sr.DoubleArrayCell_HasDoubleArray, sr.DoubleArrayCell_HasDoubleArray_Inverse, L0.DoubleArray, doubles, Bindings.DOUBLE_ARRAY);\r
                        graph.claim(result, L0.HasChildVariables, L0.HasChildVariables_Inverse, newCell);\r
                        \r