Class SelectionTableCompositeStrategyProvider

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String VIEW_FILTER_KEY
      Filter key for view registration to apply the view to the context of the selection table composite specifically in the case that some other view is also available that is intended for the editor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SelectionCompositeStrategy create​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
      Create my selection table composite strategy for selection of objects to add to the given reference of an owner object.
      protected VViewModelProperties getLoadingProperties​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature)
      Obtain the view model loading properties for filtering the applicable view models.
      protected VTableControl getTableControl​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature)
      Obtain the view model for selecting objects to add the the reference of an owner.
      java.lang.Double provides​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
      Queries my bid on a selection table composite strategy for selection of objects to add to the given reference of an owner object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VIEW_FILTER_KEY

        public static final java.lang.String VIEW_FILTER_KEY
        Filter key for view registration to apply the view to the context of the selection table composite specifically in the case that some other view is also available that is intended for the editor. The value of the filter is the name of the reference feature for which objects are to be selected.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SelectionTableCompositeStrategyProvider

        public SelectionTableCompositeStrategyProvider()
        Initializes me.
    • Method Detail

      • provides

        public java.lang.Double provides​(org.eclipse.emf.ecore.EObject owner,
                                         org.eclipse.emf.ecore.EReference reference)
        Queries my bid on a selection table composite strategy for selection of objects to add to the given reference of an owner object.
        Parameters:
        owner - the owner of the reference to be edited
        reference - the reference to which to add objects
        Returns:
        my bid, or null if I have nothing to offer
      • getTableControl

        protected VTableControl getTableControl​(org.eclipse.emf.ecore.EObject owner,
                                                org.eclipse.emf.ecore.EStructuralFeature feature)
        Obtain the view model for selecting objects to add the the reference of an owner.
        Parameters:
        owner - the owner of the reference being edited
        feature - the reference feature being edited
        Returns:
        the view model, or null if there is none
      • getLoadingProperties

        protected VViewModelProperties getLoadingProperties​(org.eclipse.emf.ecore.EObject owner,
                                                            org.eclipse.emf.ecore.EStructuralFeature feature)
        Obtain the view model loading properties for filtering the applicable view models.
        Parameters:
        owner - the owner of the reference being edited
        feature - the reference feature being edited
        Returns:
        the view model filter properties
      • create

        public SelectionCompositeStrategy create​(org.eclipse.emf.ecore.EObject owner,
                                                 org.eclipse.emf.ecore.EReference reference)
        Create my selection table composite strategy for selection of objects to add to the given reference of an owner object.
        Parameters:
        owner - the owner of the reference to be edited
        reference - the reference to which to add objects
        Returns:
        my bid, or null if I have nothing to offer