Class LeafConditionDmrNewModelElementStrategyProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.view.swt.reference.ReferenceServiceCustomizationVendor<CreateNewModelElementStrategy>
-
- org.eclipse.emf.ecp.view.internal.editor.handler.RuleConditionDmrNewModelElementStrategyProvider
-
- org.eclipse.emf.ecp.view.internal.editor.handler.LeafConditionDmrNewModelElementStrategyProvider
-
- All Implemented Interfaces:
CreateNewModelElementStrategy.Provider
,Vendor<CreateNewModelElementStrategy>
public class LeafConditionDmrNewModelElementStrategyProvider extends RuleConditionDmrNewModelElementStrategyProvider
This provider registers aCreateNewModelElementStrategy
to create segment based domain model references forLeafConditions
.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description LeafConditionDmrNewModelElementStrategyProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EStructuralFeatureSelectionValidator
getSelectionValidator()
Returns theEStructuralFeatureSelectionValidator
used by the DMR creation wizard to validate the structural feature selection.protected boolean
handles(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
Queries whether I should bid on the givenowner
andreference
.protected void
setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF databinding)
Set theEMFFormsDatabindingEMF
.protected void
setReportService(ReportService reportService)
Set theReportService
.-
Methods inherited from class org.eclipse.emf.ecp.view.internal.editor.handler.RuleConditionDmrNewModelElementStrategyProvider
createCreateNewModelElementStrategy, isSegmentToolingEnabled
-
Methods inherited from class org.eclipse.emf.ecp.ui.view.swt.reference.ReferenceServiceCustomizationVendor
bid
-
-
-
-
Method Detail
-
setEMFFormsDatabindingEMF
protected void setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF databinding)
Description copied from class:RuleConditionDmrNewModelElementStrategyProvider
Set theEMFFormsDatabindingEMF
.- Overrides:
setEMFFormsDatabindingEMF
in classRuleConditionDmrNewModelElementStrategyProvider
- Parameters:
databinding
- TheEMFFormsDatabindingEMF
-
setReportService
protected void setReportService(ReportService reportService)
Description copied from class:RuleConditionDmrNewModelElementStrategyProvider
Set theReportService
.- Overrides:
setReportService
in classRuleConditionDmrNewModelElementStrategyProvider
- Parameters:
reportService
- TheReportService
-
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 classRuleConditionDmrNewModelElementStrategyProvider
- Parameters:
owner
- the owner of a reference being edited by the Reference Servicereference
- the reference being edited- Returns:
- whether I should bid
-
getSelectionValidator
protected EStructuralFeatureSelectionValidator getSelectionValidator()
Description copied from class:RuleConditionDmrNewModelElementStrategyProvider
Returns theEStructuralFeatureSelectionValidator
used by the DMR creation wizard to validate the structural feature selection.Overwrite this to customize valid selections
- Overrides:
getSelectionValidator
in classRuleConditionDmrNewModelElementStrategyProvider
- Returns:
- The
EStructuralFeatureSelectionValidator
-
-