Class PackageDecider

  • All Implemented Interfaces:
    IResolutionTargetDecider

    public class PackageDecider
    extends AbstractDecider
    A decider that assumes that a package is referenced if the context of the reference allows for a package reference at that position. The decider creates a package element as additional candidate in that case.
    • Constructor Detail

      • PackageDecider

        public PackageDecider()
    • Method Detail

      • canFindTargetsFor

        public boolean canFindTargetsFor​(EObject referenceContainer,
                                         EReference crossReference)
        Description copied from interface: IResolutionTargetDecider
        Determines if the decider is of any use for the given resolving procedure.
        Returns:
        decision
      • containsCandidates

        public boolean containsCandidates​(EObject container,
                                          EReference containingReference)
        Description copied from interface: IResolutionTargetDecider
        Determines if the decider needs to look into the given reference.
        Returns:
        decision
      • isPossibleTarget

        public boolean isPossibleTarget​(String id,
                                        EObject element)
        Description copied from interface: IResolutionTargetDecider
        Decides if the given element is a (possibly the final) target.
        Returns:
        decision