List of usage examples for org.eclipse.jface.resource JFaceResources getImageRegistry
public static ImageRegistry getImageRegistry()
From source file:org.eclipse.birt.chart.examples.view.util.UIHelper.java
License:Open Source License
/** * This is a convenience method to get an imgIcon from a URL. * /*from www.j a v a 2s . c o m*/ * @param sPluginRelativePath * The URL for the imgIcon. * @return The imgIcon represented by the given URL. * @see #setImageCached( boolean ) */ public static ImageDescriptor getImageDescriptor(String sPluginRelativePath) { ImageRegistry registry = JFaceResources.getImageRegistry(); ImageDescriptor image = registry.getDescriptor(sPluginRelativePath); if (image == null) { registry.put(sPluginRelativePath, createImage(sPluginRelativePath)); image = registry.getDescriptor(sPluginRelativePath); } return image; }
From source file:org.eclipse.birt.chart.ui.util.UIHelper.java
License:Open Source License
/** * This is a convenience method to get an imgIcon from a URL. * /*from w ww. j a v a 2 s . co m*/ * @param sPluginRelativePath * The URL for the imgIcon. * @return The imgIcon represented by the given URL. * @see #setImageCached( boolean ) */ public static Image getImage(String sPluginRelativePath) { ImageRegistry registry = JFaceResources.getImageRegistry(); String resourcePath = ChartUIPlugin.ID + "/" + sPluginRelativePath; //$NON-NLS-1$ Image image = registry.get(resourcePath); if (image == null) { image = createImage(sPluginRelativePath); registry.put(resourcePath, image); } return image; }
From source file:org.eclipse.birt.core.ui.utils.UIHelper.java
License:Open Source License
/** * This is a convenience method to get an imgIcon from a URL. * //from www . j ava 2s. c o m * @param sPluginRelativePath * The URL for the imgIcon. * @return The imgIcon represented by the given URL. * @see #setImageCached( boolean ) */ public static Image getImage(String sPluginRelativePath) { ImageRegistry registry = JFaceResources.getImageRegistry(); String resourcePath = CoreUIPlugin.ID + "/" + sPluginRelativePath; //$NON-NLS-1$ Image image = registry.get(resourcePath); if (image == null) { image = createImage(sPluginRelativePath); registry.put(resourcePath, image); } return image; }
From source file:org.eclipse.birt.data.oda.mongodb.ui.util.UIHelper.java
License:Open Source License
/** * This is a convenience method to get an imgIcon from a URL. * /*from w w w . j a v a 2s. c o m*/ * @param sPluginRelativePath * The URL for the imgIcon. * @return The imgIcon represented by the given URL. * @throws IOException * @see #setImageCached(boolean ) */ public static Image getImage(String sPluginRelativePath) throws IOException { ImageRegistry registry = JFaceResources.getImageRegistry(); Image image = registry.get(sPluginRelativePath); if (image == null) { image = createImage(sPluginRelativePath); registry.put(sPluginRelativePath, image); } return image; }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getClassFlagImg() { return JFaceResources.getImageRegistry().get(CLASS_IMG_FLAG); }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getFieldFlagImg() { return JFaceResources.getImageRegistry().get(FIELD_IMG_FLAG); }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getMethodFlagImg() { return JFaceResources.getImageRegistry().get(METHOD_IMG_FLAG); }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getWarningFlagImg() { return JFaceResources.getImageRegistry().get(WARNING_IMG_FLAG); }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getFolderIcon() { return JFaceResources.getImageRegistry().get(FOLDER_ICON); }
From source file:org.eclipse.birt.data.oda.pojo.ui.util.Utils.java
License:Open Source License
public static Image getJarIcon() { return JFaceResources.getImageRegistry().get(JAR_ICON); }