Class DataTemplateEObjectSelectionStrategyProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.view.swt.reference.ReferenceServiceCustomizationVendor<EObjectSelectionStrategy>
-
- org.eclipse.emfforms.internal.datatemplate.tooling.editor.DataTemplateEObjectSelectionStrategyProvider
-
- All Implemented Interfaces:
EObjectSelectionStrategy.Provider
,Vendor<EObjectSelectionStrategy>
public class DataTemplateEObjectSelectionStrategyProvider extends ReferenceServiceCustomizationVendor<EObjectSelectionStrategy> implements EObjectSelectionStrategy.Provider
Provider of an data template specific object selection strategy. The objects which are allowed to be selected must be from the same template as the object we want to add them to.- Since:
- 1.23
- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description DataTemplateEObjectSelectionStrategyProvider()
Initializes me.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EObjectSelectionStrategy
createEObjectSelectionStrategy()
Create the selection strategy.protected boolean
handles(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
Queries whether I should bid on the givenowner
andreference
.-
Methods inherited from class org.eclipse.emf.ecp.ui.view.swt.reference.ReferenceServiceCustomizationVendor
bid
-
-
-
-
Method Detail
-
handles
protected boolean handles(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
Description copied from class:ReferenceServiceCustomizationVendor
Queries whether I should bid on the givenowner
andreference
. The default implementation just returnstrue
; subclasses should override.- Overrides:
handles
in classReferenceServiceCustomizationVendor<EObjectSelectionStrategy>
- Parameters:
owner
- the owner of a reference being edited by the Reference Servicereference
- the reference being edited- Returns:
- whether I should bid
-
createEObjectSelectionStrategy
public EObjectSelectionStrategy createEObjectSelectionStrategy()
Create the selection strategy.- Returns:
- the selection strategy
-
-