Interface IEUIPanel

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IClassReferenceOwner, IComponent, ICustomDataProvider, IEImagePreview, IEUICompBase, IEUICompCommon, IEUIContainer, IExtendsSelection, IGProp<GProp<?>[]>, IJavaClassLinkEnabler, IJavaMethodLinkEnabler, ILinkCapable, IMessageBox, IPropCnr, IPropDesigner, IPropRenameable, IPropUndoContext, IShowJavaSource, IStylesFilter, ITransferContainerProps, IUIBuilderFromVSLinkEnabler, IUIComp, IUIComponentLinkEnabler, IUIContainer, IVSComponentListener, IVSComponentState, IVSFieldListener, IVSLinkEnabler, IVSParticipantLinkEnabler
All Known Implementing Classes:
EMUISimpleDialog, EUIDialog, EUIPanel, EUIPanelPart

Interface implemented by panels in the Designer.
Author:
Christopher Mindus
  • Field Details

  • Method Details

    • getClassReference

      EditorClassReference getClassReference(String id, boolean doCreateIfNotPresent)
      Gets or creates the ClassReference in the property container.

      Panel do not use "ID" because there is a single class connection with the name Atom.CLASS.

      Specified by:
      getClassReference in interface IClassReferenceOwner
      Specified by:
      getClassReference in interface IJavaClassLinkEnabler
      Parameters:
      id - ID for the class reference if several exist, null for default.
      doCreateIfNotPresent - Flag to create the property (this flag can only be true in Designer)!
      Returns:
      The resolved class reference instance, null if the ClassReference doesn't exist if the create flag is false. If flag is true, an orphan unresolved EditorClassReference instance (ONLY for the Designer).
    • getClassReferenceImpl

      default EditorClassReference getClassReferenceImpl(String id, boolean doCreateIfNotPresent)
      Gets or creates the ClassReference in the property container.

      Panel do not use "ID" because there is a single class connection with the name Atom.CLASS.

      Parameters:
      id - ID for the class reference if several exist, null for default.
      doCreateIfNotPresent - Flag to create the property (this flag can only be true in Designer)!
      Returns:
      The resolved class reference instance, null if the ClassReference doesn't exist if the create flag is false. If flag is true, an orphan unresolved EditorClassReference instance (ONLY for the Designer).
    • canRenameProperty

      default boolean canRenameProperty()
      Checks if the property can be renamed.
      Specified by:
      canRenameProperty in interface IPropRenameable
      Returns:
      true for OK, false for failure.
    • getMethodReferenceAnnotationTypes

      default AnnotationType[] getMethodReferenceAnnotationTypes()
      Returns the annotation types for the method reference(s).
      Specified by:
      getMethodReferenceAnnotationTypes in interface IJavaMethodLinkEnabler
      Returns:
      An array with the annotations supported.
    • isLinkCapable

      default org.eclipse.core.runtime.IStatus isLinkCapable(LinkData data)
      Returns if this property container could potentially be link capable.

      This call is done many times during drag-drop and must be very fast and not cause too much garbage collection.

      Specified by:
      isLinkCapable in interface IEUIContainer
      Specified by:
      isLinkCapable in interface IJavaClassLinkEnabler
      Specified by:
      isLinkCapable in interface IJavaMethodLinkEnabler
      Specified by:
      isLinkCapable in interface ILinkCapable
      Specified by:
      isLinkCapable in interface IUIBuilderFromVSLinkEnabler
      Parameters:
      data - The link data.
      Returns:
      The status of capability of the operation.
    • getLinkOperations

      default Collection<ILinkOperation> getLinkOperations(LinkData data)
      Called when the drag-drop is to be performed (link or paste-link menu item). The link-capable instance fills in only what it handles.
      Specified by:
      getLinkOperations in interface IEUIContainer
      Specified by:
      getLinkOperations in interface IJavaClassLinkEnabler
      Specified by:
      getLinkOperations in interface IJavaMethodLinkEnabler
      Specified by:
      getLinkOperations in interface ILinkCapable
      Specified by:
      getLinkOperations in interface IUIBuilderFromVSLinkEnabler
      Parameters:
      data - The link data.
      Returns:
      The list of operations required.
    • createLayout

      EPanelData createLayout()
      Create the layout property.
      Returns:
      A new instance of EPanelData named Atom.LAYOUT.