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
public class SubsystemWizard.ByFeatures extends DtNewWizardParentDetectionStrategy.ByFeatures
Detects model parent by provided features for subsystem wizard.
-
-
Constructor Summary
Constructors Constructor Description ByFeatures(org.eclipse.emf.ecore.EStructuralFeature... features)
Instantiates a new by-features strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
-
-
-
-
Method Detail
-
detectParent
public void detectParent(IDtNewWizardContext<?> context, IStructuredSelection selection)
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
protected org.eclipse.emf.ecore.EStructuralFeature obtainFeatureHint(Object selection)
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
-
-