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
@JavaName createFrom
createFontDescriptorFrom :: String -> Integer -> Integer -> FontDescriptor
+importJava "org.simantics.modeling.ColorDescriptorUtil" where
+ colorDescriptorAsHex :: ColorDescriptor -> <Proc> String
+ colorDescriptorAsTuple3 :: ColorDescriptor -> <Proc> (Double, Double, Double)
+ colorDescriptor :: (Double, Double, Double) -> <Proc> ColorDescriptor
+
defaultFontDescriptor = createFontDescriptorFrom "Arial" 12 0
importJava "org.simantics.browsing.ui.content.LabelDecorator" where
importJava "org.simantics.browsing.ui.model.browsecontexts.BrowseContexts" where
toBrowseContextG :: Vector String -> <ReadGraph> BrowseContext
getNodeContextForResource :: Resource -> <Proc> NodeContext
+ getNodeContextWithTypeForResource :: Resource -> <Proc, ReadGraph> NodeContext
"""
Creates a new BrowseContext for the given Collection of Resources.