]> gerrit.simantics Code Review - simantics/platform.git/blob - 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
1 import "Simantics/Variables"
2 import "Simantics/Testing/BrowseContext"
3
4 importJava "org.simantics.ui.selection.WorkbenchSelectionElement" where
5     data WorkbenchSelectionElement
6
7 importJava "org.simantics.ui.selection.WorkbenchSelectionUtils" where
8     @JavaName "getPossibleVariableSCL"
9     possibleWSEVariable :: WorkbenchSelectionElement -> <ReadGraph> Maybe Variable
10     @JavaName "getPossibleResourceSCL"
11     possibleWSEResource :: WorkbenchSelectionElement -> <ReadGraph> Maybe Resource
12     @JavaName "getPossibleJSON"
13     possibleWSEJson :: WorkbenchSelectionElement -> <ReadGraph> Maybe String
14
15 importJava "org.simantics.browsing.ui.model.StandardWorkbenchSelectionElement" where
16     nodeContextToWorkbenchSelectionElement :: NodeContext -> WorkbenchSelectionElement