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 IDtNewWizardParentDetectionStrategy
Defines 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
areChildrenPotentialParents(Object element)
Checks whether the givenelement
has potential parents among its children.void
detectParent(IDtNewWizardContext<?> context, IStructuredSelection selection)
Detects the parent model for the givenselection
.void
dispose()
Disposes this strategy.boolean
isParentSelected(IDtNewWizardContext<?> context)
Checks whether a givencontext
is considered as having the parent selected according to this strategy.boolean
isPotentialParent(Object element)
Checks whether the givenelement
is a potential parent.
-
-
-
Method Detail
-
detectParent
void 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.
-
isParentSelected
boolean isParentSelected(IDtNewWizardContext<?> context)
Checks whether a givencontext
is considered as having the parent selected according to this strategy.- Parameters:
context
- wizard context
-
isPotentialParent
boolean isPotentialParent(Object element)
Checks whether the givenelement
is a potential parent.- Parameters:
element
- element to check.- Returns:
true
if element is a potential parent,false
otherwise.
-
areChildrenPotentialParents
boolean areChildrenPotentialParents(Object element)
Checks whether the givenelement
has potential parents among its children.- Parameters:
element
- element to check.- Returns:
true
if element has potential parents in its children,false
otherwise.
-
dispose
void dispose()
Disposes this strategy.
-
-