Interface IUIBuilderFromVSLinkEnabler

    • Method Detail

      • getUIPanel

        UIPanelBase getUIPanel()
        Returns the panel for this building.
      • getDragDropText

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

        default org.eclipse.core.runtime.IStatus isUIBuilderFromVSLinkCapable​(LinkData data)
        Returns if this property container could potentially be link capable. This will be true if all the IUICreationFromVS sources are in the same VirtualSpace.

        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.
      • 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 ILinkCapable
        Parameters:
        data - The link data.
        Returns:
        The status of capability of the operation.
      • addUIBuilderFromVSLinkOperations

        default void addUIBuilderFromVSLinkOperations​(LinkData data,
                                                      java.util.Collection<ILinkOperation> linkOps)
        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.
        linkOps - List of link operations is filled in when operations are found.
      • getLinkOperations

        default 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.
        Specified by:
        getLinkOperations in interface ILinkCapable
        Parameters:
        data - The link data.
        Returns:
        The list of operations required.