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 voiddetectParent(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
-
-
-
-
Method Detail
-
detectParent
public void detectParent(IDtNewWizardContext<?> context, IStructuredSelection selection)
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
protected org.eclipse.emf.ecore.EStructuralFeature obtainFeatureHint(Object selection)
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
-
-