Interface UIProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.eclipse.jface.viewers.ILabelProvider EMF_LABEL_PROVIDER
      The LabelProvider to use in UIProviders.
      static java.lang.String TYPE
      The Type of the Element.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.swt.widgets.Control createAddRepositoryUI​(org.eclipse.swt.widgets.Composite parent, ECPProperties repositoryProperties, org.eclipse.swt.widgets.Text repositoryNameText, org.eclipse.swt.widgets.Text repositoryLabelText, org.eclipse.swt.widgets.Text repositoryDescriptionText)
      The UIProvider can return its provider specific UI to allow the user to fill in provider specific data during the creation of an Repository.
      org.eclipse.swt.widgets.Control createCheckoutUI​(org.eclipse.swt.widgets.Composite parent, ECPCheckoutSource checkoutSource, ECPProperties projectProperties)
      The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for a checkout.
      org.eclipse.swt.widgets.Control createNewProjectUI​(org.eclipse.swt.widgets.Composite parent, CompositeStateObserver observer, ECPProperties projectProperties)
      The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for the creation of a new project.
      void fillContextMenu​(org.eclipse.jface.action.IMenuManager manager, ECPContainer context, java.lang.Object[] elements)
      Allows the UIProvider to fill the context menu specifically.
      org.eclipse.swt.graphics.Image getImage​(java.lang.Object element)
      Returns the image for an element.
      InternalProvider getProvider()
      Returns the corresponding Provider for this UI Provider.
      java.lang.String getText​(java.lang.Object element)
      Returns the name for an element.
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface org.eclipse.core.runtime.IAdaptable

        getAdapter
    • Field Detail

      • EMF_LABEL_PROVIDER

        static final org.eclipse.jface.viewers.ILabelProvider EMF_LABEL_PROVIDER
        The LabelProvider to use in UIProviders.
    • Method Detail

      • getText

        java.lang.String getText​(java.lang.Object element)
        Returns the name for an element.
        Parameters:
        element - the object to return the name for
        Returns:
        the name of this element
      • getImage

        org.eclipse.swt.graphics.Image getImage​(java.lang.Object element)
        Returns the image for an element.
        Parameters:
        element - the object to return the image for
        Returns:
        the name of this element
      • fillContextMenu

        void fillContextMenu​(org.eclipse.jface.action.IMenuManager manager,
                             ECPContainer context,
                             java.lang.Object[] elements)
        Allows the UIProvider to fill the context menu specifically.
        Parameters:
        manager - the IMenuManager to fill
        context - the current selected ECPContainer
        elements - the selected elements
      • createAddRepositoryUI

        org.eclipse.swt.widgets.Control createAddRepositoryUI​(org.eclipse.swt.widgets.Composite parent,
                                                              ECPProperties repositoryProperties,
                                                              org.eclipse.swt.widgets.Text repositoryNameText,
                                                              org.eclipse.swt.widgets.Text repositoryLabelText,
                                                              org.eclipse.swt.widgets.Text repositoryDescriptionText)
        The UIProvider can return its provider specific UI to allow the user to fill in provider specific data during the creation of an Repository.
        Parameters:
        parent - the Composite to fill
        repositoryProperties - the ECPProperties of the repository to create
        repositoryNameText - the Text widget handling the repository name
        repositoryLabelText - the Text widget handling the repository label
        repositoryDescriptionText - the Text widget handling the repository description
        Returns:
        the created control
      • createCheckoutUI

        org.eclipse.swt.widgets.Control createCheckoutUI​(org.eclipse.swt.widgets.Composite parent,
                                                         ECPCheckoutSource checkoutSource,
                                                         ECPProperties projectProperties)
        The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for a checkout.
        Parameters:
        parent - the Composite to fill
        checkoutSource - the Object to checkout
        projectProperties - the ECPProperties of the project to create
        Returns:
        the created control
      • createNewProjectUI

        org.eclipse.swt.widgets.Control createNewProjectUI​(org.eclipse.swt.widgets.Composite parent,
                                                           CompositeStateObserver observer,
                                                           ECPProperties projectProperties)
        The UIProvider can return a provider specific UI to allow the user to fill in provider specific data for the creation of a new project.
        Parameters:
        parent - the Composite to fill
        observer - the observer
        projectProperties - the ECPProperties of the project to create
        Returns:
        the created control