List of usage examples for org.eclipse.jface.resource JFaceResources getImageRegistry
public static ImageRegistry getImageRegistry()
From source file:com.mmkarton.mx7.reportgenerator.util.RootNode.java
License:Open Source License
public Image getImage() { return JFaceResources.getImageRegistry().get(ROOT_ICON); }
From source file:com.mmkarton.mx7.reportgenerator.util.SchemaNode.java
License:Open Source License
public Image getImage() { return JFaceResources.getImageRegistry().get(SCHEMA_ICON); }
From source file:com.nokia.carbide.internal.bugreport.resources.ImageResourceManager.java
License:Open Source License
/** * Loads images from given path./*from www.j ava 2 s . c om*/ * @param imagesPath path where images are found. */ public static void loadImages(String imagesPath) { Display disp = Display.getCurrent(); ImageRegistry imgReg = JFaceResources.getImageRegistry(); Image img = new Image(disp, imagesPath + "/bug_report_with_banner_75x66.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.WIZARD_BANNER, img); }
From source file:com.nokia.carbide.internal.bugreport.resources.ImageResourceManager.java
License:Open Source License
/** * Gets the image descriptor for given key. * @param key //from w w w .jav a 2 s . c o m * @return imageDescriptor */ public static ImageDescriptor getImageDescriptor(String key) { ImageRegistry imgReg = JFaceResources.getImageRegistry(); return imgReg.getDescriptor(key); }
From source file:com.nokia.carbide.internal.bugreport.resources.ImageResourceManager.java
License:Open Source License
/** * Gets the image of the given key./*from w ww . ja v a 2 s . c o m*/ * @param key * @return Image */ public static Image getImage(String key) { ImageRegistry imgReg = JFaceResources.getImageRegistry(); return imgReg.get(key); }
From source file:com.nokia.s60tools.compatibilityanalyser.resources.ImageResourceManager.java
License:Open Source License
public static void loadImages(String imagesPath) { Display disp = Display.getCurrent(); if (disp != null) { ImageRegistry imgReg = JFaceResources.getImageRegistry(); ///* ww w . jav a 2s . c om*/ // Storing images to image registry // // There are both images copyrighted by Nokia and if (imagesPath != null && !imagesPath.equals("")) { Image img = new Image(disp, imagesPath + "\\compatibility_analyser_main_55x45.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.ANALYSER_WIZARD_BANNER, img); img = new Image(disp, imagesPath + "\\compatibility_analyser_main_16.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.ANALYSIS_SMALL_ICON, img); img = new Image(disp, imagesPath + "\\compatibility_analyser_main_55x45.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.FILTER_WIZARD_BANNER, img); img = new Image(disp, imagesPath + "\\filter.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.FILTERATION_SMALL_ICON, img); img = new Image(disp, imagesPath + "\\baseline_configuration.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.BASELINE_EDITOR_ICON, img); img = new Image(disp, imagesPath + "\\known_issues_configuration.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.KNOWNISSUES_DIALOG_ICON, img); img = new Image(disp, imagesPath + "\\delete_edit.gif"); //$NON-NLS-1$ imgReg.put(ImageKeys.CLEAR_ALL, img); } } }
From source file:com.nokia.s60tools.compatibilityanalyser.resources.ImageResourceManager.java
License:Open Source License
public static ImageDescriptor getImageDescriptor(String key) { ImageRegistry imgReg = JFaceResources.getImageRegistry(); return imgReg.getDescriptor(key); }
From source file:com.nokia.s60tools.compatibilityanalyser.resources.ImageResourceManager.java
License:Open Source License
public static Image getImage(String key) { ImageRegistry imgReg = JFaceResources.getImageRegistry(); return imgReg.get(key); }
From source file:com.nokia.s60tools.crashanalyser.resources.ImageResourceManager.java
License:Open Source License
/** * Loads CrashAnalyser images into image registry * @param imagesPath path where images are */// ww w . j av a2 s . c o m public static void loadImages(String imagesPath) { Display disp = Display.getCurrent(); ImageRegistry imgReg = JFaceResources.getImageRegistry(); Image img = new Image(disp, imagesPath + "\\crash_analyser_16.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.IMG_APP_ICON, img); img = new Image(disp, imagesPath + "\\crash_analyser_55_bannered.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.WIZARD_BANNER, img); img = new Image(disp, imagesPath + "\\decode_files.png"); //$NON-NLS-1$ imgReg.put(ImageKeys.DECODE_FILES, img); img = new Image(disp, imagesPath + "\\emulator.png"); imgReg.put(ImageKeys.EMULATOR_PANIC, img); img = new Image(disp, imagesPath + "\\error_library.png"); imgReg.put(ImageKeys.ERROR_LIBRARY, img); img = new Image(disp, imagesPath + "\\file_de_coded.png"); imgReg.put(ImageKeys.DECODED_FILE, img); img = new Image(disp, imagesPath + "\\file_part_coded.png"); imgReg.put(ImageKeys.PARTIALLY_DECODED_FILE, img); img = new Image(disp, imagesPath + "\\file_coded.png"); imgReg.put(ImageKeys.CODED_FILE, img); img = new Image(disp, imagesPath + "\\selected.png"); imgReg.put(ImageKeys.SELECTED_SDK, img); }
From source file:com.nokia.s60tools.memspy.resources.ImageResourceManager.java
License:Open Source License
/** * Load images//from w ww .j av a2s. c om * @param imagesPath */ public static void loadImages(String imagesPath) { Display disp = Display.getCurrent(); ImageRegistry imgReg = JFaceResources.getImageRegistry(); // // Storing images to image registry // Image img = new Image(disp, imagesPath + "\\memspy_16.png"); imgReg.put(ImageKeys.IMG_APP_ICON, img); img = new Image(disp, imagesPath + "\\Launch_SWMT.png"); imgReg.put(ImageKeys.IMG_LAUNCH_SWMT, img); img = new Image(disp, imagesPath + "\\Export_To_html.png"); imgReg.put(ImageKeys.IMG_EXPORT_TO_HTML, img); img = new Image(disp, imagesPath + "\\Compare_2_Heaps.png"); imgReg.put(ImageKeys.IMG_COMPARE_2_HEAP, img); img = new Image(disp, imagesPath + "\\Analyse_Heap.png"); imgReg.put(ImageKeys.IMG_ANALYZE_HEAP, img); img = new Image(disp, imagesPath + "\\Launch_SWMT.png"); imgReg.put(ImageKeys.IMG_SWMT_LOG, img); img = new Image(disp, imagesPath + "\\Analyse_Heap.png"); imgReg.put(ImageKeys.IMG_HEAP_DUMP, img); img = new Image(disp, imagesPath + "\\Memspy_45.png"); imgReg.put(ImageKeys.IMG_WIZARD, img); }