List of usage examples for org.eclipse.jface.resource ImageRegistry ImageRegistry
public ImageRegistry(Display display)
From source file:ag.ion.noa4e.ui.NOAUIPluginImages.java
License:LGPL
/** * Initializes the image registry and declare all images. * //from www . j av a 2 s. co m * @return initialized image registry. * * @author Andreas Brker */ public static ImageRegistry initializeImageRegistry() { Display display = Display.getCurrent(); if (display == null) { display = Display.getDefault(); } imageRegistry = new ImageRegistry(display); declareImages(); return imageRegistry; }
From source file:at.rc.tacos.factory.ImageFactory.java
License:Open Source License
/** * Default private constructor */ private ImageFactory() { imageRegistry = new ImageRegistry(Display.getDefault()); }
From source file:au.gov.ga.earthsci.intent.IntentSelectionDialogTableLabelProvider.java
License:Apache License
public IntentSelectionDialogTableLabelProvider() { registry = new ImageRegistry(Display.getDefault()); }
From source file:ch.elexis.core.ui.UiDesk.java
License:Open Source License
public static ImageRegistry getImageRegistry() { if (theImageRegistry == null) { theImageRegistry = new ImageRegistry(getDisplay()); synchronized (theImageRegistry) { }//from w ww . j av a 2 s. co m } return theImageRegistry; }
From source file:com.agynamix.platform.infra.ApplicationContext.java
License:Open Source License
public ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(Display.getDefault()); }/*from ww w . ja v a 2s . c o m*/ return imageRegistry; }
From source file:com.aljoschability.rendis.ui.runtime.ActivatorImpl.java
License:Open Source License
private ImageRegistry getImageRegistry() { if (imageRegistry == null) { imageRegistry = new ImageRegistry(getDisplay()); imageRegistry.put(null, ImageDescriptor.getMissingImageDescriptor()); }/*from ww w . j ava 2s . co m*/ return imageRegistry; }
From source file:com.amazonaws.eclipse.ec2.Ec2Plugin.java
License:Apache License
@Override protected ImageRegistry createImageRegistry() { String[] images = new String[] { "add", "/icons/add2.png", "bundle", "/icons/package.png", "clipboard", "/icons/clipboard.png", "configure", "/icons/gear_add.png", "check", "/icons/check2.png", "console", "/icons/console.png", "error", "/icons/error.png", "info", "/icons/info.gif", "launch", "/icons/server_into.png", "reboot", "/icons/replace2.png", "refresh", "/icons/refresh.gif", "remove", "/icons/delete2.png", "snapshot", "/icons/camera.png", "terminate", "/icons/media_stop_red.png", "stop", "/icons/media_pause.png", "start", "/icons/media_play_green.png", "filter", "/icons/filter.gif", "status-running", "/icons/green-circle.png", "status-rebooting", "/icons/blue-circle.png", "status-terminated", "/icons/red-circle.png", "status-waiting", "/icons/yellow-circle.png", "server", "/icons/server.png", "volume", "/icons/harddisk.png", "shield", "/icons/shield1.png", "ami", "/icons/ami_icon.png", }; int i = 0;// w w w. ja v a 2 s. c o m ImageRegistry imageRegistry = new ImageRegistry(Display.getCurrent()); while (i < images.length - 1) { String id = images[i++]; String imagePath = images[i++]; imageRegistry.put(id, ImageDescriptor.createFromFile(getClass(), imagePath)); } return imageRegistry; }
From source file:com.amazonaws.eclipse.elasticbeanstalk.ElasticBeanstalkPlugin.java
License:Open Source License
@Override protected ImageRegistry createImageRegistry() { ImageRegistry imageRegistry = new ImageRegistry(Display.getCurrent()); imageRegistry.put(IMG_EXPORT, ImageDescriptor.createFromFile(getClass(), "/icons/export.gif")); imageRegistry.put(IMG_IMPORT, ImageDescriptor.createFromFile(getClass(), "/icons/import.gif")); imageRegistry.put(IMG_SERVER, ImageDescriptor.createFromFile(getClass(), "/icons/server.png")); imageRegistry.put(IMG_AWS_BOX, ImageDescriptor.createFromFile(getClass(), "/icons/aws-box.gif")); imageRegistry.put(IMG_CLIPBOARD, ImageDescriptor.createFromFile(getClass(), "/icons/clipboard.gif")); imageRegistry.put(IMG_ENVIRONMENT, ImageDescriptor.createFromFile(getClass(), "/icons/environment.png")); imageRegistry.put(IMG_APPLICATION, ImageDescriptor.createFromFile(getClass(), "/icons/application.png")); return imageRegistry; }
From source file:com.aptana.ide.core.ui.update.PluginsImageRegistry.java
License:Open Source License
public PluginsImageRegistry(Display display) { fImages = new ImageRegistry(display); }
From source file:com.aptana.ide.debug.internal.ui.DebugUIImages.java
License:Open Source License
/** * initializeImageRegistry//from www. j a va 2 s . c om */ private static void initializeImageRegistry() { fgImageRegistry = new ImageRegistry(Display.getDefault()); declareImages(); }