Interface ILinkCapable

    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static org.eclipse.core.runtime.IStatusSTATUS_LINK_NOT_SUPPORTED
      Status for linking not supported.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and TypeMethodDescription
      default java.lang.StringgetDragDropHTML()
      Gets the link HTML string to display when drag-dropping into JavaScript Panel Editor.
      java.lang.StringgetDragDropText()
      Gets the link text to display when drag-dropping into JavaScript Panel Editor.
      java.util.Collection<ILinkOperation>getLinkOperations​(LinkData data)
      Called when the drag-drop is to be performed (link or paste-link menu item).
      org.eclipse.core.runtime.IStatusisLinkCapable​(LinkData data)
      Returns if this property container could potentially be link capable.
      • Methods inherited from interface org.eclipse.core.runtime.IAdaptable

        getAdapter
    • Field Detail

      • STATUS_LINK_NOT_SUPPORTED

        static final org.eclipse.core.runtime.IStatus STATUS_LINK_NOT_SUPPORTED
        Status for linking not supported.
    • Method Detail

      • isLinkCapable

        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.

        Parameters:
        data - The link data.
        Returns:
        The status of capability of the operation.
      • getLinkOperations

        java.util.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.
        Parameters:
        data - The link data.
        Returns:
        The list of operations required.
      • getDragDropText

        java.lang.String getDragDropText()
        Gets the link text to display when drag-dropping into JavaScript Panel Editor.
        Returns:
        The drag-drop text to use, or null if the method getDragDropHTML() is used instead.
      • getDragDropHTML

        default java.lang.String getDragDropHTML()
        Gets the link HTML string to display when drag-dropping into JavaScript Panel Editor.