Class UIBuilderManager


  • public class UIBuilderManager
    extends java.lang.Object
    The UI builder manager holding all possible UI builders.
    Author:
    Christopher Mindus
    • Method Detail

      • getInstance

        public static UIBuilderManager getInstance()
        Gets the instance of the UI builder manager.
      • getTargetContainer

        public IEUIContainer getTargetContainer​(LinkData data)
        Returns the target container for the link data.
        Returns:
        The container, or null for none.
      • canBuild

        public boolean canBuild​(LinkData data,
                                org.eclipse.core.runtime.IAdaptable source)
        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.
        source - The source for the building operation.
        Returns:
        true if the builder supports building with the data.
      • addBuilderOperations

        public void addBuilderOperations​(LinkData data,
                                         org.eclipse.core.runtime.IAdaptable source,
                                         java.util.Collection<ILinkOperation> linkOps)
        Gets the link operation for the UI building.
        Parameters:
        data - The link data.
        source - The source for the building operation.
        linkOps - The link operations to add to.