Interface IDependentProject

  • All Superinterfaces:
    org.eclipse.core.runtime.IAdaptable, IV8Project
    All Known Subinterfaces:
    IExtensionProject, IExternalObjectProject

    public interface IDependentProject
    extends IV8Project
    IDependentProject represents a handle of an abstract V8 dependent project. Dependent projects may have a V8 configuration project as the parent, but may also be independent.

    Clients need to use an appropriate V8 project-specific manager to change or clear project parent.

    • Method Detail

      • getParent

        IConfigurationProject getParent()
        Returns parent configuration project of this dependent project. Returns null if this project is independent (has no parent).
        Returns:
        parent configuration V8 project or null if none
      • getParentProject

        org.eclipse.core.resources.IProject getParentProject()
        Returns underlying workspace IProject of parent configuration project of this dependent project. Returns null if this project is independent (has no parent).
        Returns:
        parent configuration IProject or null if none
      • isDependent

        static boolean isDependent​(IV8Project v8project,
                                   org.eclipse.core.resources.IProject parent)
        Utility method that returns whether the given V8 project is dependent for the given parent project candidate.
        Parameters:
        v8project - the V8 project to check, cannot be null
        parent - the parent project candidate, cannot be null
        Returns:
        whether the given V8 project is dependent for the given parent project candidate
      • isDependent

        static boolean isDependent​(IV8Project v8project,
                                   IDtProject parent)
        Utility method that returns whether the given V8 project is dependent for the given parent DT project candidate.
        Parameters:
        v8project - the V8 project to check, cannot be null
        parent - the parent project candidate, cannot be null
        Returns:
        whether the given V8 project is dependent for the given parent project candidate
      • getDependent

        static Collection<org.eclipse.core.resources.IProject> getDependent​(org.eclipse.core.resources.IProject parent,
                                                                            Collection<? extends IV8Project> candidates)
        Utility method that returns a collection of dependent projects from the collection of the given v8 project candidates.
        Parameters:
        parent - the parent project to get dependent for, cannot be null
        candidates - the v8 project candidates, cannot be null
        Returns:
        a collection of dependent projects from the collection of the given v8 project candidates, never null
      • getDependent

        static Collection<IDtProject> getDependent​(IDtProject parent,
                                                   Collection<? extends IV8Project> candidates)
        Utility method that returns a collection of dependent DT projects from the collection of the given v8 project candidates.
        Parameters:
        parent - the parent project to get dependent for, cannot be null
        candidates - the v8 project candidates, cannot be null
        Returns:
        a collection of dependent projects from the collection of the given v8 project candidates, never null
      • getDependent

        static Collection<org.eclipse.core.resources.IProject> getDependent​(org.eclipse.core.resources.IProject parent,
                                                                            Collection<? extends IV8Project> candidates,
                                                                            Class<? extends IDependentProject> type)
        Utility method that returns a collection of dependent projects of the given type from the collection of the given v8 project candidates.
        Parameters:
        parent - the parent project to get dependent for, cannot be null
        candidates - the v8 project candidates, cannot be null
        type - the specific dependent project type to get, cannot be null
        Returns:
        a collection of dependent projects of the given type from the collection of the given v8 project candidates, never null
      • getDependent

        static Collection<IDtProject> getDependent​(IDtProject parent,
                                                   Collection<? extends IV8Project> candidates,
                                                   Class<? extends IDependentProject> type)
        Utility method that returns a collection of dependent DT projects of the given type from the collection of the given v8 project candidates.
        Parameters:
        parent - the parent project to get dependent for, cannot be null
        candidates - the v8 project candidates, cannot be null
        type - the specific dependent project type to get, cannot be null
        Returns:
        a collection of dependent projects of the given type from the collection of the given v8 project candidates, never null