Class RuleConditionDmrOpenInNewContextStrategyProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.view.swt.reference.ReferenceServiceCustomizationVendor<OpenInNewContextStrategy>
-
- org.eclipse.emf.ecp.view.internal.editor.handler.RuleConditionDmrOpenInNewContextStrategyProvider
-
- All Implemented Interfaces:
OpenInNewContextStrategy.Provider
,Vendor<OpenInNewContextStrategy>
- Direct Known Subclasses:
IterateConditionDmrOpenInNewContextStrategyProvider
,LeafConditionDmrOpenInNewContextStrategyProvider
public class RuleConditionDmrOpenInNewContextStrategyProvider extends ReferenceServiceCustomizationVendor<OpenInNewContextStrategy> implements OpenInNewContextStrategy.Provider
Provides a strategy to edit a segment-basedVDomainModelReference
for a ruleCondition
. This provider is only active if the IDE tooling runs in segment mode.Overwrite
getSelectionValidator()
to customize valid feature selections for specific condition types.- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description RuleConditionDmrOpenInNewContextStrategyProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OpenInNewContextStrategy
createOpenInNewContextStrategy()
Creates theOpenInNewContextStrategy
.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 boolean
isSegmentToolingEnabled()
-
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<OpenInNewContextStrategy>
- Parameters:
owner
- the owner of a reference being edited by the Reference Servicereference
- the reference being edited- Returns:
- whether I should bid
-
isSegmentToolingEnabled
protected boolean isSegmentToolingEnabled()
- Returns:
- true if segment based tooling is enabled
-
getSelectionValidator
protected EStructuralFeatureSelectionValidator getSelectionValidator()
Returns theEStructuralFeatureSelectionValidator
used by the DMR creation wizard to validate the structural feature selection.Overwrite this to customize valid selections
- Returns:
- The
EStructuralFeatureSelectionValidator
-
createOpenInNewContextStrategy
public OpenInNewContextStrategy createOpenInNewContextStrategy()
Creates theOpenInNewContextStrategy
.- Returns:
- The created
OpenInNewContextStrategy
-
-