Class DtNewWizardParentDetectionStrategy.NoParent
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.wizards.base.DtNewWizardParentDetectionStrategy.NoParent
-
- All Implemented Interfaces:
IDtNewWizardParentDetectionStrategy
- Enclosing class:
- DtNewWizardParentDetectionStrategy
public static class DtNewWizardParentDetectionStrategy.NoParent extends Object implements IDtNewWizardParentDetectionStrategy
No parent strategy.
-
-
Constructor Summary
Constructors Constructor Description NoParent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
areChildrenPotentialParents(Object selection)
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 selection)
Checks whether the givenelement
is a potential parent.
-
-
-
Method Detail
-
detectParent
public void detectParent(IDtNewWizardContext<?> context, IStructuredSelection selection)
Detects the parent model for the givenselection
. Stores the result in the wizardcontext
.- Specified by:
detectParent
in interfaceIDtNewWizardParentDetectionStrategy
- Parameters:
context
- wizard context.selection
- selection to detect parent in.
-
isPotentialParent
public boolean isPotentialParent(Object selection)
Checks whether the givenelement
is a potential parent.- Specified by:
isPotentialParent
in interfaceIDtNewWizardParentDetectionStrategy
- Parameters:
selection
- element to check.- Returns:
true
if element is a potential parent,false
otherwise.
-
areChildrenPotentialParents
public boolean areChildrenPotentialParents(Object selection)
Checks whether the givenelement
has potential parents among its children.- Specified by:
areChildrenPotentialParents
in interfaceIDtNewWizardParentDetectionStrategy
- Parameters:
selection
- element to check.- Returns:
true
if element has potential parents in its children,false
otherwise.
-
dispose
public void dispose()
Description copied from interface:IDtNewWizardParentDetectionStrategy
Disposes this strategy.- Specified by:
dispose
in interfaceIDtNewWizardParentDetectionStrategy
-
isParentSelected
public boolean isParentSelected(IDtNewWizardContext<?> context)
Description copied from interface:IDtNewWizardParentDetectionStrategy
Checks whether a givencontext
is considered as having the parent selected according to this strategy.- Specified by:
isParentSelected
in interfaceIDtNewWizardParentDetectionStrategy
- Parameters:
context
- wizard context
-
-