Package com._1c.g5.v8.dt.md.ui.wizards
Class SubsystemWizard.ByFeatures
java.lang.Object
com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizardParentDetectionStrategy.ByFeatures
com._1c.g5.v8.dt.md.ui.wizards.SubsystemWizard.ByFeatures
- All Implemented Interfaces:
IDtNewWizardParentDetectionStrategy
- Enclosing class:
- SubsystemWizard
Detects model parent by provided features for subsystem wizard.
-
Constructor Summary
ConstructorsConstructorDescriptionByFeatures(org.eclipse.emf.ecore.EStructuralFeature... features) Instantiates a new by-features strategy. -
Method Summary
Modifier and TypeMethodDescriptionvoiddetectParent(IDtNewWizardContext<?> context, IStructuredSelection selection) Detects the parent model for the givenselection.protected org.eclipse.emf.ecore.EStructuralFeatureobtainFeatureHint(Object selection) Obtaines feature hint.Methods inherited from class com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizardParentDetectionStrategy.ByFeatures
areChildrenPotentialParents, detectInSelection, dispose, getV8ProjectManager, isParentSelected, isPotentialParent
-
Constructor Details
-
ByFeatures
public ByFeatures(org.eclipse.emf.ecore.EStructuralFeature... features) Instantiates a new by-features strategy.- Parameters:
features- the features to use for parent detection.
-
-
Method Details
-
detectParent
Description copied from class:DtNewWizardParentDetectionStrategy.ByFeaturesDetects the parent model for the givenselection. Stores the result in the wizardcontext.- Specified by:
detectParentin interfaceIDtNewWizardParentDetectionStrategy- Overrides:
detectParentin classDtNewWizardParentDetectionStrategy.ByFeatures- Parameters:
context- wizard context.selection- selection to detect parent in.
-
obtainFeatureHint
Description copied from class:DtNewWizardParentDetectionStrategy.ByFeaturesObtaines feature hint.- Overrides:
obtainFeatureHintin classDtNewWizardParentDetectionStrategy.ByFeatures- Parameters:
selection- the selection, can not benull- Returns:
- the obtained feature,
nullif not obtained
-