Package com._1c.g5.v8.dt.ui.wizards
Interface IDtNewWizardParentDetectionStrategy
- 
- All Known Implementing Classes:
- DtNewWizardParentDetectionStrategy.ByExternalProject,- DtNewWizardParentDetectionStrategy.ByFeatures,- DtNewWizardParentDetectionStrategy.NoParent,- PredefinedItemWizard.ByFeatures,- SubsystemWizard.ByFeatures
 
 public interface IDtNewWizardParentDetectionStrategyDefines public contract of parent detectors. Parent detectors are necessary for creation wizards, they are consulted when it is not clear which model is the parent of the one being created.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanareChildrenPotentialParents(Object element)Checks whether the givenelementhas potential parents among its children.voiddetectParent(IDtNewWizardContext<?> context, IStructuredSelection selection)Detects the parent model for the givenselection.voiddispose()Disposes this strategy.booleanisParentSelected(IDtNewWizardContext<?> context)Checks whether a givencontextis considered as having the parent selected according to this strategy.booleanisPotentialParent(Object element)Checks whether the givenelementis a potential parent.
 
- 
- 
- 
Method Detail- 
detectParentvoid detectParent(IDtNewWizardContext<?> context, IStructuredSelection selection) Detects the parent model for the givenselection. Stores the result in the wizardcontext.- Parameters:
- context- wizard context.
- selection- selection to detect parent in.
 
 - 
isParentSelectedboolean isParentSelected(IDtNewWizardContext<?> context) Checks whether a givencontextis considered as having the parent selected according to this strategy.- Parameters:
- context- wizard context
 
 - 
isPotentialParentboolean isPotentialParent(Object element) Checks whether the givenelementis a potential parent.- Parameters:
- element- element to check.
- Returns:
- trueif element is a potential parent,- falseotherwise.
 
 - 
areChildrenPotentialParentsboolean areChildrenPotentialParents(Object element) Checks whether the givenelementhas potential parents among its children.- Parameters:
- element- element to check.
- Returns:
- trueif element has potential parents in its children,- falseotherwise.
 
 - 
disposevoid dispose() Disposes this strategy.
 
- 
 
-