| java.lang.Object org.eclipse.ui.views.navigator.ResourceSelectionUtil
ResourceSelectionUtil | public class ResourceSelectionUtil (Code) | | Provides utilities for checking the validity of selections.
This class provides static methods only; it is not intended to be instantiated
or subclassed.
since: 2.0 since: |
Method Summary | |
public static IStructuredSelection | allResources(IStructuredSelection selection, int resourceMask) Returns the selection adapted to IResource. | public static boolean | allResourcesAreOfType(IStructuredSelection selection, int resourceMask) Returns whether the types of the resources in the given selection are among
the specified resource types. | public static boolean | resourceIsType(IResource resource, int resourceMask) Returns whether the type of the given resource is among the specified
resource types. |
allResources | public static IStructuredSelection allResources(IStructuredSelection selection, int resourceMask)(Code) | | Returns the selection adapted to IResource. Returns null
if any of the entries are not adaptable.
Parameters: selection - the selection Parameters: resourceMask - resource mask formed by bitwise OR of resource typeconstants (defined on IResource ) IStructuredSelection or null if any of the entries are not adaptable. See Also: IResource.getType |
allResourcesAreOfType | public static boolean allResourcesAreOfType(IStructuredSelection selection, int resourceMask)(Code) | | Returns whether the types of the resources in the given selection are among
the specified resource types.
Parameters: selection - the selection Parameters: resourceMask - resource mask formed by bitwise OR of resource typeconstants (defined on IResource ) true if all selected elements are resources of the righttype, and false if at least one element is either a resourceof some other type or a non-resource See Also: IResource.getType |
resourceIsType | public static boolean resourceIsType(IResource resource, int resourceMask)(Code) | | Returns whether the type of the given resource is among the specified
resource types.
Parameters: resource - the resource Parameters: resourceMask - resource mask formed by bitwise OR of resource typeconstants (defined on IResource ) true if the resources has a matching type, and false otherwise See Also: IResource.getType |
|
|