]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.swt.ontology/graph/Literals.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.document.swt.ontology / graph / Literals.pgraph
diff --git a/bundles/org.simantics.document.swt.ontology/graph/Literals.pgraph b/bundles/org.simantics.document.swt.ontology/graph/Literals.pgraph
new file mode 100644 (file)
index 0000000..1b4ce4b
--- /dev/null
@@ -0,0 +1,14 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+SWT = <http://www.simantics.org/SWT-1.0>
+
+LITERALS = SWT.Literals : L0.Library
+
+LITERALS.Margins <T L0.Literal
+    @L0.assert L0.HasValueType "(Integer,Integer,Integer,Integer)"
+    @L0.assert L0.HasDataType ${ left : Integer, right : Integer, top : Integer, bottom : Integer }
+
+LITERALS.Columns <T L0.Literal
+    @L0.assert L0.HasValueType "Columns"
+    // TODO: Bindings.getBeanBinding(type) does not work with enumerations
+    @L0.assert L0.HasDataType $ { columns : {key : String,label : String,tooltip : String,width : Integer,weight : Integer,alignment : String,grab : Boolean}[]}
+            
\ No newline at end of file