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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disposeResource
(Object type, Object key, Object resource) getResource
(Object type, Object key) Return resource type oftype
stored into cache withkey
.protected boolean
isDisposed
(Object resource) void
registerResource
(Object type, Object key, Object resource) Register into cache the resourceresource
type oftype
with 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:IResourcesRegistry
Return resource type oftype
stored into cache withkey
.- Specified by:
getResource
in interfaceIResourcesRegistry
- Overrides:
getResource
in classAbstractResourcesRegistry
- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
registerResource
Description copied from interface:IResourcesRegistry
Register into cache the resourceresource
type oftype
with keykey
.- Specified by:
registerResource
in interfaceIResourcesRegistry
- Overrides:
registerResource
in classAbstractResourcesRegistry
- Parameters:
type
- Resource type like Font, Color, Cursor, Image
-
disposeResource
- Specified by:
disposeResource
in classAbstractResourcesRegistry
-
isDisposed
-
removeResourcesByKeyTypeAndType
-