### Eclipse Workspace Patch 1.0 #P org.eclipse.hibachi.ui Index: src/org/eclipse/hibachi/ui/UIPlugin.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.hibachi/org.eclipse.hibachi.ui/src/org/eclipse/hibachi/ui/UIPlugin.java,v retrieving revision 1.1 diff -u -r1.1 UIPlugin.java --- src/org/eclipse/hibachi/ui/UIPlugin.java 10 Dec 2007 19:17:15 -0000 1.1 +++ src/org/eclipse/hibachi/ui/UIPlugin.java 19 Mar 2008 21:31:54 -0000 @@ -7,6 +7,7 @@ * * Contributors: * Aonix - Initial API and implementation + * Todd Wallentine (SAnToS Lab, K-State) - Refactor how the images are shared. *******************************************************************************/ @@ -16,10 +17,11 @@ import java.util.ResourceBundle; import org.eclipse.core.runtime.IConfigurationElement; -import org.eclipse.hibachi.ui.editor.AdaContentOutlinePage; import org.eclipse.hibachi.ui.editor.AdaDocumentProvider; +import org.eclipse.hibachi.ui.internal.SharedImages; import org.eclipse.hibachi.ui.internal.text.AdaEditorTextHoverDescriptor; import org.eclipse.hibachi.ui.internal.text.BestMatchHover; +import org.eclipse.hibachi.ui.outline.AdaContentOutlinePage; import org.eclipse.hibachi.ui.preferences.AdaEditorPreferencePage; import org.eclipse.hibachi.ui.preferences.AdaPreferencePage; import org.eclipse.hibachi.ui.preferences.IAdaPreferences; @@ -235,4 +237,21 @@ return m_adaEditorTextHoverDescriptors; } + + /** + * An instance of the Hibachi shared image repository. + */ + private static ISharedImages sharedImages; + + /** + * Get a handle to the Hibachi shared image repository. + * + * @return an instance of ISharedImages that can be used to get Hibachi images. + */ + public static ISharedImages getSharedImages() { + if(sharedImages == null) { + sharedImages = new SharedImages(); + } + return sharedImages; + } } Index: src/org/eclipse/hibachi/ui/internal/AdaPluginImages.java =================================================================== RCS file: /cvsroot/tools/org.eclipse.hibachi/org.eclipse.hibachi.ui/src/org/eclipse/hibachi/ui/internal/AdaPluginImages.java,v retrieving revision 1.1 diff -u -r1.1 AdaPluginImages.java --- src/org/eclipse/hibachi/ui/internal/AdaPluginImages.java 10 Dec 2007 19:18:05 -0000 1.1 +++ src/org/eclipse/hibachi/ui/internal/AdaPluginImages.java 19 Mar 2008 21:31:54 -0000 @@ -7,6 +7,7 @@ * * Contributors: * Aonix - Initial API and implementation + * Todd Wallentine (SAnToS Lab, K-State) - Refactor how the images are shared. *******************************************************************************/ package org.eclipse.hibachi.ui.internal; @@ -42,20 +43,37 @@ public static final String IMG_USE_CONTEXT_DEFAULT = NAME_PREFIX + "use.gif"; public static final String IMG_COMP_UNIT_DEFAULT = NAME_PREFIX + "comp_unit.gif"; public static final String IMG_PACKAGE_DEFAULT = NAME_PREFIX + "pkg_body.gif"; + public static final String IMG_PACKAGE_SPEC_DEFAULT = NAME_PREFIX + "pkg_spec.gif"; public static final String IMG_FUNCTION_DEFAULT = NAME_PREFIX + "function.gif"; public static final String IMG_PROCEDURE_DEFAULT = NAME_PREFIX + "procedure.gif"; + public static final String IMG_PROCEDURE_DECL_DEFAULT = NAME_PREFIX + "proc_decl.gif"; public static final String IMG_TASK_DEFAULT = NAME_PREFIX + "task.gif"; public static final String IMG_TYPE_DEFAULT = NAME_PREFIX + "type.gif"; public static final String IMG_VARIABLE_DEFAULT = NAME_PREFIX + "variable.gif"; public static final String IMG_ENTRY_DEFAULT = NAME_PREFIX + "entry.gif"; public static final String IMG_BLOCK_DEFAULT = NAME_PREFIX + "block.gif"; - + public static final String IMG_MAIN_UNIT_DEFAULT = NAME_PREFIX + "main_unit.gif"; public static final String IMG_ADA_CONFIGURATION_DEFAULT = NAME_PREFIX + "configuration.gif"; + public static final String IMG_ADA_SEARCH = NAME_PREFIX + "adasearch.gif"; + public static final String IMG_SORTED_DEFAULT = NAME_PREFIX + "sorted.gif"; + public static final String IMG_PRAGMA_DEFAULT = NAME_PREFIX + "pragma.gif"; + public static final String IMG_NAVIGATOR_DEFAULT = NAME_PREFIX + "navigator.gif"; + public static final String IMG_ABSTRACT_FUNC_DEFAULT = NAME_PREFIX + "abstract_func.gif"; + public static final String IMG_ABSTRACT_PROC_DEFAULT = NAME_PREFIX + "abstract_proc.gif"; + public static final String IMG_CLEAN_DEFAULT = NAME_PREFIX + "clean.gif"; + public static final String IMG_COLLAPSE_ALL_DEFAULT = NAME_PREFIX + "collapseall.gif"; + public static final String IMG_COMPILE_DEFAULT = NAME_PREFIX + "compile.gif"; + public static final String IMG_CONTEXT_DEFAULT = NAME_PREFIX + "context.gif"; + public static final String IMG_EXPAND_ALL_DEFAULT = NAME_PREFIX + "expandall.gif"; + public static final String IMG_FUNC_DECL_DEFAULT = NAME_PREFIX + "func_decl.gif"; + public static final String IMG_HIDE_WITH_USE_DEFAULT = NAME_PREFIX + "hide_with_use.gif"; + public static final String IMG_LINK_DEFAULT = NAME_PREFIX + "link.gif"; + public static final String IMG_LINKED_DEFAULT = NAME_PREFIX + "linked.gif"; + // overlays public static final String IMG_OVER_GENERIC = NAME_PREFIX + "generic.gif"; - - // others - public static final String IMG_ADA_SEARCH = NAME_PREFIX + "adasearch.gif"; + + public static final String IMG_ADA_WIZARD = NAME_PREFIX + "ada_wizard.gif"; public static final ImageDescriptor DESC_ADA_SOURCE_FILE_DEFAULT = createManaged(ENABLED_TOOL, IMG_ADA_SOURCE_FILE_DEFAULT); @@ -65,22 +83,39 @@ public static final ImageDescriptor DESC_USE_CONTEXT_DEFAULT = createManaged(ENABLED_TOOL, IMG_USE_CONTEXT_DEFAULT); public static final ImageDescriptor DESC_COMP_UNIT_DEFAULT = createManaged(ENABLED_TOOL, IMG_COMP_UNIT_DEFAULT); public static final ImageDescriptor DESC_PACKAGE_DEFAULT = createManaged(ENABLED_TOOL, IMG_PACKAGE_DEFAULT); + public static final ImageDescriptor DESC_PACKAGE_SPEC_DEFAULT = createManaged(ENABLED_TOOL, IMG_PACKAGE_SPEC_DEFAULT); public static final ImageDescriptor DESC_FUNCTION_DEFAULT = createManaged(ENABLED_TOOL, IMG_FUNCTION_DEFAULT); public static final ImageDescriptor DESC_PROCEDURE_DEFAULT = createManaged(ENABLED_TOOL, IMG_PROCEDURE_DEFAULT); + public static final ImageDescriptor DESC_PROCEDURE_DECL_DEFAULT = createManaged(ENABLED_TOOL, IMG_PROCEDURE_DECL_DEFAULT); public static final ImageDescriptor DESC_TASK_DEFAULT = createManaged(ENABLED_TOOL, IMG_TASK_DEFAULT); public static final ImageDescriptor DESC_TYPE_DEFAULT = createManaged(ENABLED_TOOL, IMG_TYPE_DEFAULT); public static final ImageDescriptor DESC_VARIABLE_DEFAULT = createManaged(ENABLED_TOOL, IMG_VARIABLE_DEFAULT); public static final ImageDescriptor DESC_ENTRY_DEFAULT = createManaged(ENABLED_TOOL, IMG_ENTRY_DEFAULT); public static final ImageDescriptor DESC_BLOCK_DEFAULT = createManaged(ENABLED_TOOL, IMG_BLOCK_DEFAULT); + public static final ImageDescriptor DESC_MAIN_UNIT_DEFAULT = createManaged(ENABLED_TOOL, IMG_MAIN_UNIT_DEFAULT); + public static final ImageDescriptor DESC_SORTED_DEFAULT = createManaged(ENABLED_TOOL, IMG_SORTED_DEFAULT); + public static final ImageDescriptor DESC_PRAGMA_DEFAULT = createManaged(ENABLED_TOOL, IMG_PRAGMA_DEFAULT); + public static final ImageDescriptor DESC_NAVIGATOR_DEFAULT = createManaged(ENABLED_TOOL, IMG_NAVIGATOR_DEFAULT); - public static final ImageDescriptor DESC_ADA_CONFIGURATION_DEFAULT = createManaged(ENABLED_TOOL, IMG_ADA_CONFIGURATION_DEFAULT); + public static final ImageDescriptor DESC_ADA_SEARCH = createManaged(ENABLED_TOOL, IMG_ADA_SEARCH); + public static final ImageDescriptor DESC_ABSTRACT_FUNC_DEFAULT = createManaged(ENABLED_TOOL, IMG_ABSTRACT_FUNC_DEFAULT); + public static final ImageDescriptor DESC_ABSTRACT_PROC_DEFAULT = createManaged(ENABLED_TOOL, IMG_ABSTRACT_PROC_DEFAULT); + public static final ImageDescriptor DESC_CLEAN_DEFAULT = createManaged(ENABLED_TOOL, IMG_CLEAN_DEFAULT); + public static final ImageDescriptor DESC_COLLAPSE_ALL_DEFAULT = createManaged(ENABLED_TOOL, IMG_COLLAPSE_ALL_DEFAULT); + public static final ImageDescriptor DESC_COMPILE_DEFAULT = createManaged(ENABLED_TOOL, IMG_COMPILE_DEFAULT); + public static final ImageDescriptor DESC_CONTEXT_DEFAULT = createManaged(ENABLED_TOOL, IMG_CONTEXT_DEFAULT); + public static final ImageDescriptor DESC_EXPAND_ALL_DEFAULT = createManaged(ENABLED_TOOL, IMG_EXPAND_ALL_DEFAULT); + public static final ImageDescriptor DESC_FUNC_DECL_DEFAULT = createManaged(ENABLED_TOOL, IMG_FUNC_DECL_DEFAULT); + public static final ImageDescriptor DESC_HIDE_WITH_USE_DEFAULT = createManaged(ENABLED_TOOL, IMG_HIDE_WITH_USE_DEFAULT); + public static final ImageDescriptor DESC_LINK_DEFAULT = createManaged(ENABLED_TOOL, IMG_LINK_DEFAULT); + public static final ImageDescriptor DESC_LINKED_DEFAULT = createManaged(ENABLED_TOOL, IMG_LINKED_DEFAULT); // overlays public static final ImageDescriptor DESC_OVR_GENERIC = createManaged(OVERLAYS, IMG_OVER_GENERIC); - // others - public static final ImageDescriptor DESC_ADA_SEARCH = createManaged(ENABLED_TOOL, IMG_ADA_SEARCH); + // wizban + public static final ImageDescriptor DESC_ADA_WIZARD = createManaged(WIZARD, IMG_ADA_WIZARD); /** * Index: src/org/eclipse/hibachi/ui/internal/SharedImages.java =================================================================== RCS file: src/org/eclipse/hibachi/ui/internal/SharedImages.java diff -N src/org/eclipse/hibachi/ui/internal/SharedImages.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/hibachi/ui/internal/SharedImages.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,97 @@ +/* + * SharedImages + * + * $Revision$ - $Date$ + * + * Copyright (c) 2008 Kansas State University, Laboratory for the Specification, + * Analysis, and Transformation of Software (SAnToS). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Todd Wallentine (SAnToS Lab, K-State) - Initial creation so images can be shared. + */ +package org.eclipse.hibachi.ui.internal; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.hibachi.ui.ISharedImages; +import org.eclipse.hibachi.ui.util.internal.SWTResourceUtil; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.swt.graphics.Image; + +/** + * The SharedImages class is a basic implementation of the ISharedImages + * interface and provides access to share images in the Hibachi UI. + * + * To make retrieval faster, we create a static Map to store the + * image descriptors in (keyed by a String). + * + * @author Todd Wallentine tcw AT cis ksu edu + * @version $Revision$ - $Date$ + */ +public class SharedImages implements ISharedImages { + + /** + * A Map from id to image descriptors. + */ + private static Map imageDescriptors; + + static { + imageDescriptors = new HashMap(); + imageDescriptors.put(ISharedImages.IMG_ADA_CONFIGURATION, AdaPluginImages.DESC_ADA_CONFIGURATION_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_ADA_SEARCH, AdaPluginImages.DESC_ADA_SEARCH); + imageDescriptors.put(ISharedImages.IMG_ADA_SOURCE_FILE, AdaPluginImages.DESC_ADA_SOURCE_FILE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_ADA_WIZARD, AdaPluginImages.DESC_ADA_WIZARD); + imageDescriptors.put(ISharedImages.IMG_BLOCK, AdaPluginImages.DESC_BLOCK_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_COMP_UNIT, AdaPluginImages.DESC_COMP_UNIT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_CONTEXT_CONTAINER, AdaPluginImages.DESC_CONTEXT_CONTAINER_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_ENTRY, AdaPluginImages.DESC_ENTRY_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_FUNCTION, AdaPluginImages.DESC_FUNCTION_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_MAIN_UNIT, AdaPluginImages.DESC_MAIN_UNIT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_NAVIGATOR, AdaPluginImages.DESC_NAVIGATOR_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_OVER_GENERIC, AdaPluginImages.DESC_OVR_GENERIC); + imageDescriptors.put(ISharedImages.IMG_PACKAGE, AdaPluginImages.DESC_PACKAGE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_PACKAGE_SPEC, AdaPluginImages.DESC_PACKAGE_SPEC_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_PRAGMA, AdaPluginImages.DESC_PRAGMA_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_PROCEDURE, AdaPluginImages.DESC_PROCEDURE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_PROCEDURE_DECL, AdaPluginImages.DESC_PROCEDURE_DECL_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_PROTECTED_OBJECT, AdaPluginImages.DESC_PROTECTED_OBJECT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_SORTED, AdaPluginImages.DESC_SORTED_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_TASK, AdaPluginImages.DESC_TASK_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_TYPE, AdaPluginImages.DESC_TYPE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_USE_CONTEXT, AdaPluginImages.DESC_USE_CONTEXT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_VARIABLE, AdaPluginImages.DESC_VARIABLE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_WITH_CONTEXT, AdaPluginImages.DESC_WITH_CONTEXT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_ABSTRACT_FUNC, AdaPluginImages.DESC_ABSTRACT_FUNC_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_ABSTRACT_PROC, AdaPluginImages.DESC_ABSTRACT_PROC_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_CLEAN, AdaPluginImages.DESC_CLEAN_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_COLLAPSE_ALL, AdaPluginImages.DESC_COLLAPSE_ALL_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_COMPILE, AdaPluginImages.DESC_COMPILE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_CONTEXT, AdaPluginImages.DESC_CONTEXT_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_EXPAND_ALL, AdaPluginImages.DESC_EXPAND_ALL_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_FUNC_DECL, AdaPluginImages.DESC_FUNC_DECL_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_HIDE_WITH_USE, AdaPluginImages.DESC_HIDE_WITH_USE_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_LINK, AdaPluginImages.DESC_LINK_DEFAULT); + imageDescriptors.put(ISharedImages.IMG_LINKED, AdaPluginImages.DESC_LINKED_DEFAULT); + } + + /** + * @see org.eclipse.hibachi.ui.ISharedImages#getImage(java.lang.String) + */ + public Image getImage(final String symbolicName) { + ImageDescriptor imageDescriptor = getImageDescriptor(symbolicName); + return SWTResourceUtil.getImage(imageDescriptor); + } + + /** + * @see org.eclipse.hibachi.ui.ISharedImages#getImageDescriptor(java.lang.String) + */ + public ImageDescriptor getImageDescriptor(String symbolicName) { + return imageDescriptors.get(symbolicName); + } + +} Index: src/org/eclipse/hibachi/ui/ISharedImages.java =================================================================== RCS file: src/org/eclipse/hibachi/ui/ISharedImages.java diff -N src/org/eclipse/hibachi/ui/ISharedImages.java --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ src/org/eclipse/hibachi/ui/ISharedImages.java 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,93 @@ +/* + * ISharedImages + * + * $Revision$ - $Date$ + * + * Copyright (c) 2008 Kansas State University, Laboratory for the Specification, + * Analysis, and Transformation of Software (SAnToS). + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Todd Wallentine (SAnToS Lab, K-State) - Initial creation so images can be shared. + */ +package org.eclipse.hibachi.ui; + +import org.eclipse.hibachi.ui.internal.AdaPluginImages; +import org.eclipse.jface.resource.ImageDescriptor; +import org.eclipse.swt.graphics.Image; + +/** + * The ISharedImages interface provides constants that map to all the available + * images in the Hibachi UI plugin. Each image will have a static String key + * that maps to it so that it is easier to retrieve the images. + * + * @author Todd Wallentine tcw AT cis ksu edu + * @version $Revision$ - $Date$ + */ +public interface ISharedImages { + + public static final String IMG_ADA_SOURCE_FILE = AdaPluginImages.IMG_ADA_SOURCE_FILE_DEFAULT; + public static final String IMG_PROTECTED_OBJECT = AdaPluginImages.IMG_PROTECTED_OBJECT_DEFAULT; + public static final String IMG_CONTEXT_CONTAINER = AdaPluginImages.IMG_CONTEXT_CONTAINER_DEFAULT; + public static final String IMG_WITH_CONTEXT = AdaPluginImages.IMG_WITH_CONTEXT_DEFAULT; + public static final String IMG_USE_CONTEXT = AdaPluginImages.IMG_USE_CONTEXT_DEFAULT; + public static final String IMG_COMP_UNIT = AdaPluginImages.IMG_COMP_UNIT_DEFAULT; + public static final String IMG_PACKAGE = AdaPluginImages.IMG_PACKAGE_DEFAULT; + public static final String IMG_PACKAGE_SPEC = AdaPluginImages.IMG_PACKAGE_SPEC_DEFAULT; + public static final String IMG_FUNCTION = AdaPluginImages.IMG_FUNCTION_DEFAULT; + public static final String IMG_PROCEDURE = AdaPluginImages.IMG_PROCEDURE_DEFAULT; + public static final String IMG_PROCEDURE_DECL = AdaPluginImages.IMG_PROCEDURE_DECL_DEFAULT; + public static final String IMG_TASK = AdaPluginImages.IMG_TASK_DEFAULT; + public static final String IMG_TYPE = AdaPluginImages.IMG_TYPE_DEFAULT; + public static final String IMG_VARIABLE = AdaPluginImages.IMG_VARIABLE_DEFAULT; + public static final String IMG_ENTRY = AdaPluginImages.IMG_ENTRY_DEFAULT; + public static final String IMG_BLOCK = AdaPluginImages.IMG_BLOCK_DEFAULT; + public static final String IMG_ADA_CONFIGURATION = AdaPluginImages.IMG_ADA_CONFIGURATION_DEFAULT; + public static final String IMG_OVER_GENERIC = AdaPluginImages.IMG_OVER_GENERIC; + public static final String IMG_ADA_SEARCH = AdaPluginImages.IMG_ADA_SEARCH; + public static final String IMG_MAIN_UNIT = AdaPluginImages.IMG_MAIN_UNIT_DEFAULT; + public static final String IMG_ADA_WIZARD = AdaPluginImages.IMG_ADA_WIZARD; + public static final String IMG_SORTED = AdaPluginImages.IMG_SORTED_DEFAULT; + public static final String IMG_PRAGMA = AdaPluginImages.IMG_PRAGMA_DEFAULT; + public static final String IMG_NAVIGATOR = AdaPluginImages.IMG_NAVIGATOR_DEFAULT; + public static final String IMG_ABSTRACT_FUNC = AdaPluginImages.IMG_ABSTRACT_FUNC_DEFAULT; + public static final String IMG_ABSTRACT_PROC = AdaPluginImages.IMG_ABSTRACT_PROC_DEFAULT; + public static final String IMG_CLEAN = AdaPluginImages.IMG_CLEAN_DEFAULT; + public static final String IMG_COLLAPSE_ALL = AdaPluginImages.IMG_COLLAPSE_ALL_DEFAULT; + public static final String IMG_COMPILE = AdaPluginImages.IMG_COMPILE_DEFAULT; + public static final String IMG_CONTEXT = AdaPluginImages.IMG_CONTEXT_DEFAULT; + public static final String IMG_EXPAND_ALL = AdaPluginImages.IMG_EXPAND_ALL_DEFAULT; + public static final String IMG_FUNC_DECL = AdaPluginImages.IMG_FUNC_DECL_DEFAULT; + public static final String IMG_HIDE_WITH_USE = AdaPluginImages.IMG_HIDE_WITH_USE_DEFAULT; + public static final String IMG_LINK = AdaPluginImages.IMG_LINK_DEFAULT; + public static final String IMG_LINKED = AdaPluginImages.IMG_LINKED_DEFAULT; + + /** + * Retrieves the specified image from the Hibachi plugin's image registry. + * Note: The returned Image is managed by the Hibachi plugin; + * clients must not dispose of the returned image. + * + * @param symbolicName + * the symbolic name of the image; there are constants declared + * in this interface for built-in images that come from the + * Hibachi plugin. + * @return the image, or null if not found + */ + Image getImage(final String symbolicName); + + /** + * Retrieves the image descriptor for the specified image from the Hibachi + * plugin's image registry. Unlike Images, image descriptors + * themselves do not need to be disposed. + * + * @param symbolicName + * the symbolic name of the image; there are constants declared + * in this interface for built-in images that come from the + * Hibachi plugin. + * @return the image, or null if not found + */ + ImageDescriptor getImageDescriptor(final String symbolicName); +}