Example usage for org.eclipse.jface.resource ImageRegistry dispose

List of usage examples for org.eclipse.jface.resource ImageRegistry dispose

Introduction

In this page you can find the example usage for org.eclipse.jface.resource ImageRegistry dispose.

Prototype

public void dispose() 

Source Link

Document

Disposes this image registry, disposing any images that were allocated for it, and clearing its entries.

Usage

From source file:org.eclipse.gyrex.admin.ui.persistence.internal.PersistenceUiActivator.java

License:Open Source License

@Override
protected void doStop(final BundleContext context) throws Exception {
    instance = null;//from  w  w  w  .j a va  2 s  . co  m

    final ImageRegistry imageRegistry = imageRegistryRef.getAndSet(null);
    if (null != imageRegistry) {
        imageRegistry.dispose();
    }
}