Class EditorStyles

    • Field Detail


        public static java.lang.String[] PREDEFINED_NAME_DESCR
        Predefined class names.

        The entries are stored in pairs of strings. The first string is the name of the style without the '*' where null indicates it's a group. The second string is the description.

    • Constructor Detail

      • EditorStyles

        public EditorStyles()
        Creates the screen identification property container without a name. The name must be set in all cases using the setPropertyAtom call.
      • EditorStyles

        public EditorStyles​(Atom propertyAtom)
        Creates the screen identification property container with the specified name. All system-reserved names for components begins with "$".
        propertyAtom - the name of the component, unique within it's parent.
    • Method Detail

      • getUndoContext

        public org.eclipse.core.commands.operations.IUndoContext getUndoContext()
        Gets the undo context.
        Specified by:
        getUndoContext in interface IPropUndoContext
        The undo context for the Editor part(s) for this container.
      • clone

        public EditorStyles clone()
                           throws java.lang.CloneNotSupportedException
        Clone must be overridden.
        clone in class PropCnr
        java.lang.CloneNotSupportedException - If a subclass doesn't allow cloning, e.g. the client properties.
      • getExtendsPossibleClasses

        public java.lang.Class<?>[] getExtendsPossibleClasses()
        Gets the possible classes this container supports for the Extends Framework. The default implementation is to return null.
        Specified by:
        getExtendsPossibleClasses in interface IPropCnr
        getExtendsPossibleClasses in class Styles
        List of supported classes, or null for none.
      • getSelectPropViewerFilter

        public org.eclipse.jface.viewers.ViewerFilter getSelectPropViewerFilter()
        Gets the viewer filter for the tree in the dialog for selecting extends property name.
        Specified by:
        getSelectPropViewerFilter in interface IExtendsSelection
      • verify

        public void verify​(PropVerification verification)
        Verifies this property container. The check performed is the extension of classes and that no circular reference is present.
        Specified by:
        verify in interface IGProp<GProp<?>[]>
        verify in class PropCnr
        verification - The property verification class.
      • getStyles

        public java.util.ArrayList<CSSStyle> getStyles​(boolean includeUndefined)
        Gets the styles as a list of CSS styles.
        includeUndefined - Flag to include undefined styles.
        Array of styles.
      • onPropInvalidateCache

        protected void onPropInvalidateCache()
        Invalidates a potential cache in this property. This method is called during a synchronized state of the property. Subclasses override this method to provide a robust caching mechanism.
        onPropInvalidateCache in class GProp<GProp<?>[]>
      • getFontInfo

        public FontInfo getFontInfo()
        Returns the font information for this styles instance.
        The cached font information.
      • getCNDescriptionType

        public java.lang.String getCNDescriptionType()
        Provide a type description for the status bar view, if available.
        Specified by:
        getCNDescriptionType in interface ITransferContainerProps
        A type description for the status bar view, or null if not available.
      • getTransferProps

        public java.lang.Object[] getTransferProps()
        Returns the list of properties that are transferable between layout managers.
        Specified by:
        getTransferProps in interface ITransferContainerProps
        The list of String's or Atom's that are transferable, null for none.
      • getMainStyles

        public EditorStyles getMainStyles()
        Returns the main (parent) styles.
        getMainStyles in class Styles
        The main styles instance. This is the same instance in case it's not a state-styles instance.