ResourceSelectionUtil
instead.@Deprecated public class ResourceSelectionUtil extends Object
This class provides static methods only; it is not intended to be instantiated or subclassed.
Modifier and Type | Method and Description |
---|---|
static IStructuredSelection |
allResources(IStructuredSelection selection,
int resourceMask)
Deprecated.
Returns the selection adapted to IResource.
|
static boolean |
allResourcesAreOfType(IStructuredSelection selection,
int resourceMask)
Deprecated.
Returns whether the types of the resources in the given selection are among
the specified resource types.
|
static boolean |
resourceIsType(IResource resource,
int resourceMask)
Deprecated.
Returns whether the type of the given resource is among the specified
resource types.
|
public static boolean allResourcesAreOfType(IStructuredSelection selection, int resourceMask)
selection
- the selectionresourceMask
- resource mask formed by bitwise OR of resource type
constants (defined on IResource
)true
if all selected elements are resources of the right
type, and false
if at least one element is either a resource
of some other type or a non-resourceIResource.getType()
public static IStructuredSelection allResources(IStructuredSelection selection, int resourceMask)
selection
- the selectionresourceMask
- resource mask formed by bitwise OR of resource type
constants (defined on IResource
)IResource.getType()
public static boolean resourceIsType(IResource resource, int resourceMask)
resource
- the resourceresourceMask
- resource mask formed by bitwise OR of resource type
constants (defined on IResource
)true
if the resources has a matching type, and
false
otherwiseIResource.getType()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.