X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FWorkbenchSelection.scl;fp=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FWorkbenchSelection.scl;h=fc060e083a02329c46d4d5a56a6a518e47e85fc9;hp=60ab7797b288ab5a5b1316cd646ce2f55a7ef80a;hb=6a6726b1ee9c2e78971d26b50f15b867cc7c5a02;hpb=93622c2baf328a90b122dd749b63676c72c839f5 diff --git a/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl b/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl index 60ab7797b..fc060e083 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl @@ -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 -> Maybe Variable @JavaName "getPossibleResourceSCL" possibleWSEResource :: WorkbenchSelectionElement -> Maybe Resource - \ No newline at end of file + @JavaName "getPossibleJSON" + possibleWSEJson :: WorkbenchSelectionElement -> Maybe String + +importJava "org.simantics.browsing.ui.model.StandardWorkbenchSelectionElement" where + nodeContextToWorkbenchSelectionElement :: NodeContext -> WorkbenchSelectionElement \ No newline at end of file