X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling%2Fscl%2FSimantics%2FWorkbenchSelection.scl;h=fc060e083a02329c46d4d5a56a6a518e47e85fc9;hb=5ea4ad47a74e042f8728f48a0635f5f291519b29;hp=70987a2fa0c960d0d6d9e3c9cc49505ebd42dc57;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl b/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl index 70987a2fa..fc060e083 100644 --- a/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl +++ b/bundles/org.simantics.modeling/scl/Simantics/WorkbenchSelection.scl @@ -1,12 +1,16 @@ -import "Simantics/Variables" - - -importJava "org.simantics.ui.selection.WorkbenchSelectionElement" where - data WorkbenchSelectionElement - -importJava "org.simantics.ui.selection.WorkbenchSelectionUtils" where - @JavaName "getPossibleVariableSCL" - possibleWSEVariable :: WorkbenchSelectionElement -> Maybe Variable - @JavaName "getPossibleResourceSCL" - possibleWSEResource :: WorkbenchSelectionElement -> Maybe Resource - \ No newline at end of file +import "Simantics/Variables" +import "Simantics/Testing/BrowseContext" + +importJava "org.simantics.ui.selection.WorkbenchSelectionElement" where + data WorkbenchSelectionElement + +importJava "org.simantics.ui.selection.WorkbenchSelectionUtils" where + @JavaName "getPossibleVariableSCL" + possibleWSEVariable :: WorkbenchSelectionElement -> Maybe Variable + @JavaName "getPossibleResourceSCL" + possibleWSEResource :: WorkbenchSelectionElement -> Maybe Resource + @JavaName "getPossibleJSON" + possibleWSEJson :: WorkbenchSelectionElement -> Maybe String + +importJava "org.simantics.browsing.ui.model.StandardWorkbenchSelectionElement" where + nodeContextToWorkbenchSelectionElement :: NodeContext -> WorkbenchSelectionElement \ No newline at end of file