List of usage examples for org.eclipse.jface.resource ResourceManager disposeExec
public void disposeExec(Runnable r)
run() method of the runnable to be invoked just before the receiver is disposed. 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); }