Enum MdExtensionUiConstants

    • Method Detail

      • values

        public static MdExtensionUiConstants[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MdExtensionUiConstants c : MdExtensionUiConstants.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MdExtensionUiConstants valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getLabel

        public String getLabel​(MdPropertyState state)
        Returns the text for the label of the given property state.
        Parameters:
        state - the property statefor which to provide the label text, cannot be null
        Returns:
        the text string used to label the property state, or null if there is no text label for the given object
      • getTypeImage

        public org.eclipse.swt.graphics.Image getTypeImage​(MdPropertyState state,
                                                           boolean bordered)
        Returns the image for the specified property state.
        Parameters:
        state - the property state, cannot be null
        bordered - flag to get bordered image or not
        Returns:
        the image for the specified property state or null if image not found or state equals NONE with no border
      • getTypeImageDescriptor

        public org.eclipse.jface.resource.ImageDescriptor getTypeImageDescriptor​(MdPropertyState state,
                                                                                 boolean bordered)
        Returns the image descriptior for the specified property state.
        Parameters:
        state - the property state, cannot be null
        bordered - flag to get bordered image or not
        Returns:
        the image descriptior for the specified property state or null if image not found or state equals NONE with no border