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.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.
-
Constructor Summary
Constructors Constructor Description SelectionTableCompositeStrategyProvider()
Initializes me.
-
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 givenreference
of anowner
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 thereference
of anowner
.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 givenreference
of anowner
object.
-
-
-
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 givenreference
of anowner
object.- Parameters:
owner
- the owner of the reference to be editedreference
- 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 thereference
of anowner
.- Parameters:
owner
- the owner of thereference
being editedfeature
- 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 thereference
being 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 givenreference
of anowner
object.- Parameters:
owner
- the owner of the reference to be editedreference
- the reference to which to add objects- Returns:
- my bid, or
null
if I have nothing to offer
-
-