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 TypeMethodDescriptionvoid
detectParent
(IDtNewWizardContext<?> context, IStructuredSelection selection) Detects the parent model for the givenselection
.protected org.eclipse.emf.ecore.EStructuralFeature
obtainFeatureHint
(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.ByFeatures
Detects the parent model for the givenselection
. Stores the result in the wizardcontext
.- Specified by:
detectParent
in interfaceIDtNewWizardParentDetectionStrategy
- Overrides:
detectParent
in classDtNewWizardParentDetectionStrategy.ByFeatures
- Parameters:
context
- wizard context.selection
- selection to detect parent in.
-
obtainFeatureHint
Description copied from class:DtNewWizardParentDetectionStrategy.ByFeatures
Obtaines feature hint.- Overrides:
obtainFeatureHint
in classDtNewWizardParentDetectionStrategy.ByFeatures
- Parameters:
selection
- the selection, can not benull
- Returns:
- the obtained feature,
null
if not obtained
-