Class SelectionTableCompositeStrategyProvider
- java.lang.Object
-
- org.eclipse.emfforms.swt.internal.reference.table.SelectionTableCompositeStrategyProvider
-
- All Implemented Interfaces:
SelectionCompositeStrategy.Provider,Vendor<SelectionCompositeStrategy>
public class SelectionTableCompositeStrategyProvider extends java.lang.Object implements SelectionCompositeStrategy.Provider
Provider of a selection composite strategy that builds a selection table viewer from a table control model.- Since:
- 1.27
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringVIEW_FILTER_KEYFilter 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.
-
Constructor Summary
Constructors Constructor Description SelectionTableCompositeStrategyProvider()Initializes me.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectionCompositeStrategycreate(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 givenreferenceof anownerobject.protected VViewModelPropertiesgetLoadingProperties(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 VTableControlgetTableControl(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EStructuralFeature feature)Obtain the view model for selecting objects to add the thereferenceof anowner.java.lang.Doubleprovides(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 givenreferenceof anownerobject.
-
-
-
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
-
-
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 givenreferenceof anownerobject.- Parameters:
owner- the owner of the reference to be editedreference- the reference to which to add objects- Returns:
- my bid, or
nullif 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 thereferenceof anowner.- Parameters:
owner- the owner of thereferencebeing editedfeature- the reference feature being edited- Returns:
- the view model, or
nullif 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 thereferencebeing editedfeature- 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 givenreferenceof anownerobject.- Parameters:
owner- the owner of the reference to be editedreference- the reference to which to add objects- Returns:
- my bid, or
nullif I have nothing to offer
-
-