Class CSSResourcesHelpers
java.lang.Object
org.eclipse.e4.ui.css.core.resources.CSSResourcesHelpers
CSS Resources Helper to manage
IResourcesRegistry
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCSSFontPropertiesKey
(CSS2FontProperties fontProperties) static String
Return the key of the CSSPrimitiveValuevalue
which is used to cache Resource intoIResourcesRegistry
.static String
getCSSRGBColorKey
(RGBColor rgbColor) static String
getCSSValueKey
(CSSValue value) static Object
getResource
(IResourcesRegistry resourcesRegistry, Object type, String key) Return the resource type oftype
cached intoresourcesRegistry
with keykey
.static Object
getResource
(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value) Return the resource type oftype
cached intoresourcesRegistry
with CSSPrimitiveValuevalue
key.static void
registerResource
(IResourcesRegistry resourcesRegistry, Object type, String key, Object resource) Register theresource
type oftype
intoresourcesRegistry
withkey
.static void
registerResource
(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value, Object resource) Register theresource
type oftype
intoresourcesRegistry
with CSSPrimitiveValuevalue
key.
-
Constructor Details
-
CSSResourcesHelpers
public CSSResourcesHelpers()
-
-
Method Details
-
getCSSValueKey
-
getCSSPrimitiveValueKey
Return the key of the CSSPrimitiveValuevalue
which is used to cache Resource intoIResourcesRegistry
. -
getCSSRGBColorKey
-
getCSSFontPropertiesKey
-
getResource
public static Object getResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value) Return the resource type oftype
cached intoresourcesRegistry
with CSSPrimitiveValuevalue
key. -
getResource
Return the resource type oftype
cached intoresourcesRegistry
with keykey
. -
registerResource
public static void registerResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value, Object resource) Register theresource
type oftype
intoresourcesRegistry
with CSSPrimitiveValuevalue
key. -
registerResource
public static void registerResource(IResourcesRegistry resourcesRegistry, Object type, String key, Object resource) Register theresource
type oftype
intoresourcesRegistry
withkey
.
-