Class EditorFontFaces

All Implemented Interfaces:
IEditorFont, IPropDesigner, IPropUndoContext, EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable, org.eclipse.core.runtime.IAdaptable

public class EditorFontFaces extends FontFaces implements IPropDesigner, IPropUndoContext, IEditorFont
Font face style definitions property container for the Editor.
  • Constructor Details

    • EditorFontFaces

      public EditorFontFaces()
      Creates the FontFace Definition property container without a name. The name must be set in all cases using the setPropertyAtom call.
    • EditorFontFaces

      public EditorFontFaces(Atom propertyAtom)
      Creates the FontFace Definition property container with the specified name. All system-reserved names for components begins with "$".
      Parameters:
      propertyAtom - the name of the component, unique within it's parent.
  • Method Details

    • getFontFiles

      public EditorFontFiles[] getFontFiles()
      Gets the font icon files container referenced.
      Overrides:
      getFontFiles in class FontFaces
    • getCNImage

      public org.eclipse.swt.graphics.Image getCNImage()
      Gets the image for the Common Navigator.
      Specified by:
      getCNImage in interface IEditorFont
    • getCNType

      public String getCNType()
      Gets the type for the Common Navigator.
      Specified by:
      getCNType in interface IEditorFont
    • getCNText

      public String getCNText()
      Gets the label text for the Common Navigator.
      Specified by:
      getCNText in interface IEditorFont
    • onEventSelf

      public void onEventSelf(GEvent event)
      Overridden to check for cache clearing...
      Specified by:
      onEventSelf in interface IGProp<GProp<?>[]>
      Overrides:
      onEventSelf in class GProp<GProp<?>[]>
      Parameters:
      event - The property event.
    • createTooltip

      public org.eclipse.swt.widgets.Composite createTooltip(org.eclipse.swt.widgets.Composite parent)
      Creates the tooltip.
      Specified by:
      createTooltip in interface IEditorFont
    • getDesigner

      public FontDesignerProp getDesigner()
      Gets the Designer Extension for Properties.
      Specified by:
      getDesigner in interface IPropDesigner
      Returns:
      The instance of the Designer Extension.
    • getUndoContext

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

      Clone must be overridden.
      Overrides:
      clone in class PropCnr
      Throws:
      CloneNotSupportedException - If a subclass doesn't allow cloning, e.g. the client properties.
    • getPossibleChildren

      public Class<?>[] getPossibleChildren()
      Gets the acceptable children property classes that can be used in conjunction with e.g. a Paste operation.
      Specified by:
      getPossibleChildren in interface IPropCnr
      Overrides:
      getPossibleChildren in class PropCnr
      Returns:
      An array containing the classes of possible children, or null for no support.
    • verify

      public boolean 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<?>[]>
      Overrides:
      verify in class PropCnr
      Parameters:
      verification - The property verification class.
      Returns:
      true if verification should proceed, false if disposed of and verification should not take place.