public class RuleConditionDmrOpenInNewContextStrategyProvider extends ReferenceServiceCustomizationVendor<OpenInNewContextStrategy> implements OpenInNewContextStrategy.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 |
---|
RuleConditionDmrOpenInNewContextStrategyProvider() |
Modifier and Type | Method and Description |
---|---|
OpenInNewContextStrategy |
createOpenInNewContextStrategy()
Creates the
OpenInNewContextStrategy . |
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() |
bid
public RuleConditionDmrOpenInNewContextStrategyProvider()
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<OpenInNewContextStrategy>
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 OpenInNewContextStrategy createOpenInNewContextStrategy()
OpenInNewContextStrategy
.OpenInNewContextStrategy
Copyright © 2019. All rights reserved.