use of org.eclipse.jface.resource.ImageRegistry in project webtools.servertools by eclipse.
the class GenericUiPlugin method createImageRegistry.
protected ImageRegistry createImageRegistry() {
ImageRegistry registry = new ImageRegistry();
// $NON-NLS-1$
ImageDescriptor desc = ImageDescriptor.createFromURL(getDefault().getBundle().getEntry("/icons/wizban/new_server_wiz.png"));
registry.put(WIZBAN_IMAGE, desc);
return registry;
}
use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.
the class KaleoImages method _create.
private static ImageDescriptor _create(String key) {
try {
ImageDescriptor imageDescriptor = _createDescriptor(key);
ImageRegistry imageRegistry = _getImageRegistry();
if (imageRegistry != null) {
imageRegistry.put(key, imageDescriptor);
}
return imageDescriptor;
} catch (Exception ex) {
KaleoUI.logError(ex);
return null;
}
}
use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.
the class KaleoImages method _createImage.
private static Image _createImage(String key) {
_create(key);
ImageRegistry imageRegistry = _getImageRegistry();
if (imageRegistry == null) {
return null;
}
return imageRegistry.get(key);
}
use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.
the class BundlesImages method create.
private static ImageDescriptor create(String key) {
try {
ImageDescriptor imageDescriptor = createDescriptor(key);
ImageRegistry imageRegistry = getImageRegistry();
if (imageRegistry != null) {
imageRegistry.put(key, imageDescriptor);
}
return imageDescriptor;
} catch (Exception ex) {
LiferayServerUI.logError(ex);
return null;
}
}
use of org.eclipse.jface.resource.ImageRegistry in project liferay-ide by liferay.
the class BundlesImages method createImage.
private static Image createImage(String key) {
create(key);
ImageRegistry imageRegistry = getImageRegistry();
return imageRegistry == null ? null : imageRegistry.get(key);
}
Aggregations