Class CSSResourcesHelpers
java.lang.Object
org.eclipse.e4.ui.css.core.resources.CSSResourcesHelpers
CSS Resources Helper to manage
IResourcesRegistry.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCSSFontPropertiesKey(CSS2FontProperties fontProperties) static StringReturn the key of the CSSPrimitiveValuevaluewhich is used to cache Resource intoIResourcesRegistry.static StringgetCSSRGBColorKey(RGBColor rgbColor) static StringgetCSSValueKey(CSSValue value) static ObjectgetResource(IResourcesRegistry resourcesRegistry, Object type, String key) Return the resource type oftypecached intoresourcesRegistrywith keykey.static ObjectgetResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value) Return the resource type oftypecached intoresourcesRegistrywith CSSPrimitiveValuevaluekey.static voidregisterResource(IResourcesRegistry resourcesRegistry, Object type, String key, Object resource) Register theresourcetype oftypeintoresourcesRegistrywithkey.static voidregisterResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value, Object resource) Register theresourcetype oftypeintoresourcesRegistrywith CSSPrimitiveValuevaluekey.
-
Constructor Details
-
CSSResourcesHelpers
public CSSResourcesHelpers()
-
-
Method Details
-
getCSSValueKey
-
getCSSPrimitiveValueKey
Return the key of the CSSPrimitiveValuevaluewhich is used to cache Resource intoIResourcesRegistry. -
getCSSRGBColorKey
-
getCSSFontPropertiesKey
-
getResource
public static Object getResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value) Return the resource type oftypecached intoresourcesRegistrywith CSSPrimitiveValuevaluekey. -
getResource
Return the resource type oftypecached intoresourcesRegistrywith keykey. -
registerResource
public static void registerResource(IResourcesRegistry resourcesRegistry, Object type, CSSPrimitiveValue value, Object resource) Register theresourcetype oftypeintoresourcesRegistrywith CSSPrimitiveValuevaluekey. -
registerResource
public static void registerResource(IResourcesRegistry resourcesRegistry, Object type, String key, Object resource) Register theresourcetype oftypeintoresourcesRegistrywithkey.
-