Class FolderProvider

java.lang.Object
com.e1c.langtool.internal.stat.FolderProvider
All Implemented Interfaces:
GroupProvider

public final class FolderProvider extends Object implements GroupProvider
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the unique identifier of the grouping.
    org.eclipse.core.runtime.IPath
    getParent(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
    Gets the parent path for the resource or group path.
    Collection<org.eclipse.core.runtime.IPath>
    getParents(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
    Gets a collection of parent paths along the object path.
    org.eclipse.core.runtime.IPath
    getPath(@NonNull Object group, org.eclipse.core.resources.IProject project)
    Gets the path of the grouping object.
    Collection<org.eclipse.core.runtime.IPath>
    getResources(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
    Gets a collection of resource paths included in the group.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FolderProvider

      public FolderProvider()
  • Method Details

    • getID

      public String getID()
      Description copied from interface: GroupProvider
      Gets the unique identifier of the grouping. The grouping ID must be unique.
      Specified by:
      getID in interface GroupProvider
      Returns:
      the id
    • getPath

      public org.eclipse.core.runtime.IPath getPath(@NonNull Object group, org.eclipse.core.resources.IProject project)
      Description copied from interface: GroupProvider
      Gets the path of the grouping object. If the object is not a grouping, returns null. The grouping path must be unique and must not match the path to any project resource.
      Specified by:
      getPath in interface GroupProvider
      Parameters:
      group - the object that is presumably a grouping of this provider for which it is necessary to return the correct unique path
      project - of the project
      Returns:
      the path of this group, or null if the object is not a grouping
    • getParents

      public Collection<org.eclipse.core.runtime.IPath> getParents(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
      Description copied from interface: GroupProvider
      Gets a collection of parent paths along the object path.
      Specified by:
      getParents in interface GroupProvider
      Parameters:
      path - the the relative path of this resource with respect to its project for the resource or a group whose parent paths need to be returned
      project - the project
      Returns:
      the groups, or empty collection, if the collection is empty then the object is root
    • getParent

      public org.eclipse.core.runtime.IPath getParent(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
      Description copied from interface: GroupProvider
      Gets the parent path for the resource or group path.
      Specified by:
      getParent in interface GroupProvider
      Parameters:
      path - the relative path of this resource with respect to its project for the resource or group path
      project - the project
      Returns:
      the path of the parent of this path, or null if the object is root
    • getResources

      public Collection<org.eclipse.core.runtime.IPath> getResources(org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project)
      Description copied from interface: GroupProvider
      Gets a collection of resource paths included in the group.
      Specified by:
      getResources in interface GroupProvider
      Parameters:
      path - the path to a group
      project - the project
      Returns:
      the resources, or empty collection if group has no resources