@Override protected Object allocate(DeviceResourceDescriptor descriptor) throws DeviceResourceException { return parentRegistry.create(descriptor); }
@Override protected Object allocate(DeviceResourceDescriptor descriptor) throws DeviceResourceException { return parentRegistry.create(descriptor); }
protected Object allocate(DeviceResourceDescriptor descriptor) throws DeviceResourceException { return parentRegistry.create(descriptor); }
/** * Returns the Font described by the given FontDescriptor. Any Font * allocated in this manner must be deallocated by calling disposeFont(...), * or by an eventual call to {@link #dispose()}. The method {@link Font#dispose()} * must never be called directly on the returned font. * * @since 3.1 * * @param descriptor description of the font to create * @return the Font described by the given descriptor * @throws DeviceResourceException if unable to create the font */ public final Font createFont(FontDescriptor descriptor) { return (Font)create(descriptor); }
/** * Returns the Font described by the given FontDescriptor. Any Font * allocated in this manner must be deallocated by calling disposeFont(...), * or by an eventual call to {@link #dispose()}. The method {@link Font#dispose()} * must never be called directly on the returned font. * * @since 3.1 * * @param descriptor description of the font to create * @return the Font described by the given descriptor * @throws DeviceResourceException if unable to create the font */ public final Font createFont(FontDescriptor descriptor) { return (Font)create(descriptor); }
/** * Returns the Font described by the given FontDescriptor. Any Font * allocated in this manner must be deallocated by calling disposeFont(...), * or by an eventual call to {@link #dispose()}. The method {@link Font#dispose()} * must never be called directly on the returned font. * * @since 1.0 * * @param descriptor description of the font to create * @return the Font described by the given descriptor * @throws DeviceResourceException if unable to create the font */ public final Font createFont(FontDescriptor descriptor) { return (Font)create(descriptor); }
/** * Allocates a color, given a color descriptor. Any color allocated in this * manner must be disposed by calling {@link #destroyColor(ColorDescriptor)}, * or by an eventual call to {@link #dispose()}. {@link Color#dispose()} must * never been called directly on the returned color. * * @since 3.1 * * @param descriptor descriptor for the color to create * @return the Color described by the given ColorDescriptor (not null) * @throws DeviceResourceException if unable to create the color */ public final Color createColor(ColorDescriptor descriptor) { return (Color)create(descriptor); }
/** * Allocates a color, given a color descriptor. Any color allocated in this * manner must be disposed by calling {@link #destroyColor(ColorDescriptor)}, * or by an eventual call to {@link #dispose()}. {@link Color#dispose()} must * never been called directly on the returned color. * * @since 3.1 * * @param descriptor descriptor for the color to create * @return the Color described by the given ColorDescriptor (not null) * @throws DeviceResourceException if unable to create the color */ public final Color createColor(ColorDescriptor descriptor) { return (Color)create(descriptor); }
/** * Allocates a color, given a color descriptor. Any color allocated in this * manner must be disposed by calling {@link #destroyColor(ColorDescriptor)}, * or by an eventual call to {@link #dispose()}. {@link Color#dispose()} must * never been called directly on the returned color. * * @since 1.0 * * @param descriptor descriptor for the color to create * @return the Color described by the given ColorDescriptor (not null) * @throws DeviceResourceException if unable to create the color */ public final Color createColor(ColorDescriptor descriptor) { return (Color)create(descriptor); }
/** * <p>Creates an image, given an image descriptor. Images allocated in this manner must * be disposed by {@link #destroyImage(ImageDescriptor)}, and never by calling * {@link Image#dispose()}.</p> * * <p> * If the image is intended to remain allocated for the lifetime of the ResourceManager, * the call to destroyImage may be omitted and the image will be cleaned up automatically * when the ResourceManager is disposed. This should only be done with short-lived ResourceManagers, * as doing so with the global manager effectively leaks the resource. * </p> * * @since 3.1 * * @param descriptor descriptor for the image to create * @return the Image described by this descriptor (possibly shared by other equivalent * ImageDescriptors) * @throws DeviceResourceException if unable to allocate the Image */ public final Image createImage(ImageDescriptor descriptor) { // Assertion added to help diagnose client bugs. See bug #83711 and bug #90454. Assert.isNotNull(descriptor); return (Image)create(descriptor); }
/** * <p>Creates an image, given an image descriptor. Images allocated in this manner must * be disposed by {@link #destroyImage(ImageDescriptor)}, and never by calling * {@link Image#dispose()}.</p> * * <p> * If the image is intended to remain allocated for the lifetime of the ResourceManager, * the call to destroyImage may be omitted and the image will be cleaned up automatically * when the ResourceManager is disposed. This should only be done with short-lived ResourceManagers, * as doing so with the global manager effectively leaks the resource. * </p> * * @since 1.0 * * @param descriptor descriptor for the image to create * @return the Image described by this descriptor (possibly shared by other equivalent * ImageDescriptors) * @throws DeviceResourceException if unable to allocate the Image */ public final Image createImage(ImageDescriptor descriptor) { // Assertion added to help diagnose client bugs. See bug #83711 and bug #90454. Assert.isNotNull(descriptor); return (Image)create(descriptor); }
/** * <p>Creates an image, given an image descriptor. Images allocated in this manner must * be disposed by {@link #destroyImage(ImageDescriptor)}, and never by calling * {@link Image#dispose()}.</p> * * <p> * If the image is intended to remain allocated for the lifetime of the ResourceManager, * the call to destroyImage may be omitted and the image will be cleaned up automatically * when the ResourceManager is disposed. This should only be done with short-lived ResourceManagers, * as doing so with the global manager effectively leaks the resource. * </p> * * @since 3.1 * * @param descriptor descriptor for the image to create * @return the Image described by this descriptor (possibly shared by other equivalent * ImageDescriptors) * @throws DeviceResourceException if unable to allocate the Image */ public final Image createImage(ImageDescriptor descriptor) { // Assertion added to help diagnose client bugs. See bug #83711 and bug #90454. Assert.isNotNull(descriptor); return (Image)create(descriptor); }
result = create(descriptor);
@SuppressWarnings("deprecation") public Image getImage(Object element) { if(element instanceof IWorkingSet) { ImageDescriptor imageDescriptor = ((IWorkingSet) element).getImage(); if(imageDescriptor != null) { try { return (Image) images.create(imageDescriptor); } catch(DeviceResourceException ex) { return null; } } } return super.getImage(element); }
manager.create(entry.descriptor); } catch (DeviceResourceException e) {
manager.create(entry.descriptor); } catch (DeviceResourceException e) {
newResource = newDescriptor == null ? null : mgr.create(newDescriptor); } catch (DeviceResourceException e1) { WorkbenchPlugin.log(e1);
return (Image) create(descriptor); } catch (DeviceResourceException e) { Policy.getLog().log(
return (Image) create(descriptor); } catch (DeviceResourceException e) { Policy.getLog().log(
return (Image) create(descriptor); } catch (DeviceResourceException e) { Policy.getLog().log(