Package com.e1c.langtool.internal.stat
Class FolderProvider
java.lang.Object
com.e1c.langtool.internal.stat.FolderProvider
- All Implemented Interfaces:
GroupProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetID()Gets the unique identifier of the grouping.org.eclipse.core.runtime.IPathgetParent(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.IPathGets 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.
-
Constructor Details
-
FolderProvider
public FolderProvider()
-
-
Method Details
-
getID
Description copied from interface:GroupProviderGets the unique identifier of the grouping. The grouping ID must be unique.- Specified by:
getIDin interfaceGroupProvider- Returns:
- the id
-
getPath
public org.eclipse.core.runtime.IPath getPath(@NonNull Object group, org.eclipse.core.resources.IProject project) Description copied from interface:GroupProviderGets the path of the grouping object. If the object is not a grouping, returnsnull. The grouping path must be unique and must not match the path to any project resource.- Specified by:
getPathin interfaceGroupProvider- Parameters:
group- the object that is presumably a grouping of this provider for which it is necessary to return the correct unique pathproject- of the project- Returns:
- the path of this group,
or
nullif 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:GroupProviderGets a collection of parent paths along the object path.- Specified by:
getParentsin interfaceGroupProvider- 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 returnedproject- 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:GroupProviderGets the parent path for the resource or group path.- Specified by:
getParentin interfaceGroupProvider- Parameters:
path- the relative path of this resource with respect to its project for the resource or group pathproject- the project- Returns:
- the path of the parent of this path,
or
nullif 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:GroupProviderGets a collection of resource paths included in the group.- Specified by:
getResourcesin interfaceGroupProvider- Parameters:
path- the path to a groupproject- the project- Returns:
- the resources, or empty collection if group has no resources
-