X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fscl%2FSimantics%2FTesting%2FBrowseContext.scl;h=590ddd21ce8f658d40b133dd6cb0fddd3be8607d;hp=436557f31e613d10760f593a8b7288b5b64ef518;hb=67918d39fd9a67b659dcb118412fe0313a8fc0e8;hpb=8fa7480b919692e4f076e536d3e790865c6e70f8 diff --git a/bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl b/bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl index 436557f31..590ddd21c 100644 --- a/bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl +++ b/bundles/org.simantics.modeling.ui/scl/Simantics/Testing/BrowseContext.scl @@ -78,6 +78,8 @@ importJava "org.simantics.browsing.ui.content.ImageDecorator" where importJava "org.eclipse.jface.resource.DeviceResourceDescriptor" where data FontDescriptor + +importJava "org.eclipse.jface.resource.ColorDescriptor" where data ColorDescriptor importJava "org.eclipse.jface.resource.FontDescriptor" where @@ -85,6 +87,11 @@ importJava "org.eclipse.jface.resource.FontDescriptor" where @JavaName createFrom createFontDescriptorFrom :: String -> Integer -> Integer -> FontDescriptor +importJava "org.simantics.modeling.ColorDescriptorUtil" where + colorDescriptorAsHex :: ColorDescriptor -> String + colorDescriptorAsTuple3 :: ColorDescriptor -> (Double, Double, Double) + colorDescriptor :: (Double, Double, Double) -> ColorDescriptor + defaultFontDescriptor = createFontDescriptorFrom "Arial" 12 0 importJava "org.simantics.browsing.ui.content.LabelDecorator" where @@ -115,6 +122,7 @@ importJava "org.simantics.browsing.ui.content.Labeler$Modifier" where importJava "org.simantics.browsing.ui.model.browsecontexts.BrowseContexts" where toBrowseContextG :: Vector String -> BrowseContext getNodeContextForResource :: Resource -> NodeContext + getNodeContextWithTypeForResource :: Resource -> NodeContext """ Creates a new BrowseContext for the given Collection of Resources.