]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl
Add workbenchselection json fetcher to SCL interface
[simantics/platform.git] / bundles / org.simantics.modeling / scl / Simantics / WorkbenchSelection.scl
index 60ab7797b288ab5a5b1316cd646ce2f55a7ef80a..fc060e083a02329c46d4d5a56a6a518e47e85fc9 100644 (file)
@@ -1,5 +1,5 @@
 import "Simantics/Variables"
-
+import "Simantics/Testing/BrowseContext"
 
 importJava "org.simantics.ui.selection.WorkbenchSelectionElement" where
     data WorkbenchSelectionElement
@@ -9,4 +9,8 @@ importJava "org.simantics.ui.selection.WorkbenchSelectionUtils" where
     possibleWSEVariable :: WorkbenchSelectionElement -> <ReadGraph> Maybe Variable
     @JavaName "getPossibleResourceSCL"
     possibleWSEResource :: WorkbenchSelectionElement -> <ReadGraph> Maybe Resource
-    
\ No newline at end of file
+    @JavaName "getPossibleJSON"
+    possibleWSEJson :: WorkbenchSelectionElement -> <ReadGraph> Maybe String
+
+importJava "org.simantics.browsing.ui.model.StandardWorkbenchSelectionElement" where
+    nodeContextToWorkbenchSelectionElement :: NodeContext -> WorkbenchSelectionElement
\ No newline at end of file