]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ui/scl/Simantics/ProceduralUserComponent.scl
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.modeling.ui / scl / Simantics / ProceduralUserComponent.scl
diff --git a/bundles/org.simantics.modeling.ui/scl/Simantics/ProceduralUserComponent.scl b/bundles/org.simantics.modeling.ui/scl/Simantics/ProceduralUserComponent.scl
new file mode 100644 (file)
index 0000000..5c4ee07
--- /dev/null
@@ -0,0 +1,16 @@
+include "Simantics/Model"\r
+import "Simantics/Diagram"\r
+import "Simantics/Flag"\r
+include "Simantics/Ontologies"\r
+\r
+type ProceduralUserComponent = Resource\r
+\r
+importJava "org.simantics.modeling.ui.actions.NewProceduralComponentType" where\r
+    @JavaName create\r
+    createProceduralUserComponent :: Resource -> <WriteGraph> ProceduralUserComponent\r
+\r
+importJava "org.simantics.modeling.userComponent.ComponentTypeCommands" where\r
+    createConnectionPoint :: Resource -> Resource -> <WriteGraph> Resource\r
+    \r
+    @JavaName saveProceduralCodeWithUC\r
+    saveProceduralCode :: ProceduralUserComponent -> String -> <WriteGraph> ()
\ No newline at end of file