Example usage for org.eclipse.jface.resource ResourceManager disposeExec

List of usage examples for org.eclipse.jface.resource ResourceManager disposeExec

Introduction

In this page you can find the example usage for org.eclipse.jface.resource ResourceManager disposeExec.

Prototype

public void disposeExec(Runnable r) 

Source Link

Document

Causes the run() method of the runnable to be invoked just before the receiver is disposed.

Usage

From source file:raptor.swt.RaptorImageRegistry.java

License:BSD License

/**
 * Creates an empty image registry using the given resource manager to
 * allocate images./*from  w  ww .j  a v a 2  s. c  o  m*/
 * 
 * @param manager
 *            the resource manager used to allocate images
 * 
 * @since 3.1
 */
public RaptorImageRegistry(ResourceManager manager) {
    Assert.isNotNull(manager);
    Device dev = manager.getDevice();
    if (dev instanceof Display) {
        display = (Display) dev;
    }
    this.manager = manager;
    manager.disposeExec(disposeRunnable);
}