protected void deallocate(Object resource, DeviceResourceDescriptor descriptor) { parentRegistry.destroy(descriptor); }
@Override protected void deallocate(Object resource, DeviceResourceDescriptor descriptor) { parentRegistry.destroy(descriptor); }
/** * Undoes everything that was done by {@link #createImage(ImageDescriptor)}. * * @since 3.1 * * @param descriptor identifier for the image to dispose */ public final void destroyImage(ImageDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by {@link #createImage(ImageDescriptor)}. * * @since 3.1 * * @param descriptor identifier for the image to dispose */ public final void destroyImage(ImageDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by a call to {@link #createColor(ColorDescriptor)}. * * * @since 3.1 * * @param descriptor identifier for the color to dispose */ public final void destroyColor(ColorDescriptor descriptor) { destroy(descriptor); }
@Override protected void deallocate(Object resource, DeviceResourceDescriptor descriptor) { parentRegistry.destroy(descriptor); }
/** * Undoes everything that was done by a previous call to {@link #createFont(FontDescriptor)}. * * @since 3.1 * * @param descriptor description of the font to destroy */ public final void destroyFont(FontDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by a call to {@link #createColor(ColorDescriptor)}. * * * @since 1.0 * * @param descriptor identifier for the color to dispose */ public final void destroyColor(ColorDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by a call to {@link #createColor(ColorDescriptor)}. * * * @since 3.1 * * @param descriptor identifier for the color to dispose */ public final void destroyColor(ColorDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by a previous call to {@link #createFont(FontDescriptor)}. * * @since 3.1 * * @param descriptor description of the font to destroy */ public final void destroyFont(FontDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by {@link #createImage(ImageDescriptor)}. * * @since 1.0 * * @param descriptor identifier for the image to dispose */ public final void destroyImage(ImageDescriptor descriptor) { destroy(descriptor); }
/** * Undoes everything that was done by a previous call to {@link #createFont(FontDescriptor)}. * * @since 1.0 * * @param descriptor description of the font to destroy */ public final void destroyFont(FontDescriptor descriptor) { destroy(descriptor); }
public void dispose() { // Deallocate the old image if (oldDescriptor != null) { ResourceManager mgr = JFaceResources.getResources(); // Dispose the image mgr.destroy(oldDescriptor); oldDescriptor = null; } } }
/** * Removes an image from this registry. * If an SWT image was allocated, it is disposed. * This method has no effect if there is no image or descriptor for the given key. * @param key the key */ public void remove(String key) { ImageDescriptor descriptor = getDescriptor(key); if (descriptor != null) { manager.destroy(descriptor); getTable().remove(key); } }
/** * Removes an image from this registry. * If an SWT image was allocated, it is disposed. * This method has no effect if there is no image or descriptor for the given key. * @param key the key */ public void remove(String key) { ImageDescriptor descriptor = getDescriptor(key); if (descriptor != null) { manager.destroy(descriptor); getTable().remove(key); } }
/** * Removes an image from this registry. * If an SWT image was allocated, it is disposed. * This method has no effect if there is no image or descriptor for the given key. * @param key the key */ public void remove(String key) { ImageDescriptor descriptor = getDescriptor(key); if (descriptor != null) { manager.destroy(descriptor); getTable().remove(key); } }
mgr.destroy(oldDescriptor);