Class MdExtensionUiSharedImages


  • public final class MdExtensionUiSharedImages
    extends Object
    Metadata extension UI shared images.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Method Detail

      • getImage

        public static org.eclipse.swt.graphics.Image getImage​(String symbolicName)
        Returns the image for the provided symbolic name.
        Parameters:
        symbolicName - the image name, cannot be null
        Returns:
        the image for the provided symbolic name or null if image not found
      • getImageDescriptor

        public static org.eclipse.jface.resource.ImageDescriptor getImageDescriptor​(String symbolicName)
        Returns the image descriptior for the provided symbolic name.
        Parameters:
        symbolicName - the image name, cannot be null
        Returns:
        the image descriptior for the provided symbolic name or null if image not found
      • getStateImage

        public static org.eclipse.swt.graphics.Image getStateImage​(MdPropertyState state,
                                                                   boolean bordered)
        Returns the image for the provided state value.
        Parameters:
        state - the property state, cannot be null
        bordered - flag to get bordered image or not
        Returns:
        the image for the provided state value or null if image not found
      • getStateImageDescriptor

        public static org.eclipse.jface.resource.ImageDescriptor getStateImageDescriptor​(MdPropertyState state,
                                                                                         boolean bordered)
        Returns the image descriptor for the provided state value.
        Parameters:
        state - the property state, cannot be null
        bordered - flag to get bordered image or not
        Returns:
        the image descriptor for the provided state value or null if image not found