Class SWTResourcesRegistry
java.lang.Object
org.eclipse.e4.ui.css.core.resources.AbstractResourcesRegistry
org.eclipse.e4.ui.css.swt.resources.SWTResourcesRegistry
- All Implemented Interfaces:
IResourcesRegistry
SWT Resources Registry to cache SWT Resource like Color, Cursor and Font and
dispose it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisposeResource(Object type, Object key, Object resource) getResource(Object type, Object key) Return resource type oftypestored into cache withkey.protected booleanisDisposed(Object resource) voidregisterResource(Object type, Object key, Object resource) Register into cache the resourceresourcetype oftypewith keykey.removeResourcesByKeyTypeAndType(Class<?> keyType, Class<?>... types) Methods inherited from class org.eclipse.e4.ui.css.core.resources.AbstractResourcesRegistry
dispose, getCacheByType, getResourceType, unregisterResource, unregisterResource
-
Constructor Details
-
SWTResourcesRegistry
-
-
Method Details
-
getResource
Description copied from interface:IResourcesRegistryReturn resource type oftypestored into cache withkey.- Specified by:
getResourcein interfaceIResourcesRegistry- Overrides:
getResourcein classAbstractResourcesRegistry- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
registerResource
Description copied from interface:IResourcesRegistryRegister into cache the resourceresourcetype oftypewith keykey.- Specified by:
registerResourcein interfaceIResourcesRegistry- Overrides:
registerResourcein classAbstractResourcesRegistry- Parameters:
type- Resource type like Font, Color, Cursor, Image
-
disposeResource
- Specified by:
disposeResourcein classAbstractResourcesRegistry
-
isDisposed
-
removeResourcesByKeyTypeAndType
-