public class RuleConditionDmrNewModelElementStrategyProvider extends ReferenceServiceCustomizationVendor<CreateNewModelElementStrategy> implements CreateNewModelElementStrategy.Provider
VDomainModelReference
for a rule
Condition
. This provider is only active if the IDE tooling runs in segment mode.
Overwrite getSelectionValidator()
to customize valid feature selections for specific condition types.
Constructor and Description |
---|
RuleConditionDmrNewModelElementStrategyProvider() |
Modifier and Type | Method and Description |
---|---|
CreateNewModelElementStrategy |
createCreateNewModelElementStrategy()
Creates the
CreateNewModelElementStrategy . |
protected EStructuralFeatureSelectionValidator |
getSelectionValidator()
Returns the
EStructuralFeatureSelectionValidator 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 given
owner and reference . |
protected boolean |
isSegmentToolingEnabled() |
protected void |
setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF databinding)
Set the
EMFFormsDatabindingEMF . |
protected void |
setReportService(ReportService reportService)
Set the
ReportService . |
bid
public RuleConditionDmrNewModelElementStrategyProvider()
protected void setEMFFormsDatabindingEMF(EMFFormsDatabindingEMF databinding)
EMFFormsDatabindingEMF
.databinding
- The EMFFormsDatabindingEMF
protected void setReportService(ReportService reportService)
ReportService
.reportService
- The ReportService
protected boolean handles(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
ReferenceServiceCustomizationVendor
owner
and reference
.
The default implementation just returns true
; subclasses should override.handles
in class ReferenceServiceCustomizationVendor<CreateNewModelElementStrategy>
owner
- the owner of a reference being edited by the Reference Servicereference
- the reference being editedprotected boolean isSegmentToolingEnabled()
protected EStructuralFeatureSelectionValidator getSelectionValidator()
EStructuralFeatureSelectionValidator
used by the DMR creation wizard to validate the
structural feature selection.
Overwrite this to customize valid selections
EStructuralFeatureSelectionValidator
public CreateNewModelElementStrategy createCreateNewModelElementStrategy()
CreateNewModelElementStrategy
.CreateNewModelElementStrategy
Copyright © 2019. All rights reserved.