Interface IDtNewWizardParentDetectionStrategy

    • Method Detail

      • detectParent

        void detectParent​(IDtNewWizardContext<?> context,
                          IStructuredSelection selection)
        Detects the parent model for the given selection. Stores the result in the wizard context.
        Parameters:
        context - wizard context.
        selection - selection to detect parent in.
      • isParentSelected

        boolean isParentSelected​(IDtNewWizardContext<?> context)
        Checks whether a given context is considered as having the parent selected according to this strategy.
        Parameters:
        context - wizard context
      • isPotentialParent

        boolean isPotentialParent​(Object element)
        Checks whether the given element 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 given element 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.