Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.views.navigator
Class ResourceSelectionUtil


java.lang.Object
  extended by 
org.eclipse.ui.views.navigator.ResourceSelectionUtil

Deprecated. as of 3.5, use the Common Navigator Framework classes instead

public class ResourceSelectionUtil
extends Object

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

Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.

Method Summary
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.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

allResourcesAreOfType

public 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.

Parameters:
selection - the selection
resourceMask - resource mask formed by bitwise OR of resource type constants (defined on IResource)
Returns:
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-resource
See Also:
IResource.getType()

allResources

public static 
IStructuredSelection allResources(
IStructuredSelection selection,
                                                int resourceMask)
Deprecated. 
Returns the selection adapted to IResource. Returns null if any of the entries are not adaptable.

Parameters:
selection - the selection
resourceMask - resource mask formed by bitwise OR of resource type constants (defined on IResource)
Returns:
IStructuredSelection or null if any of the entries are not adaptable.
See Also:
IResource.getType()

resourceIsType

public static boolean resourceIsType(
IResource resource,
                                     int resourceMask)
Deprecated. 
Returns whether the type of the given resource is among the specified resource types.

Parameters:
resource - the resource
resourceMask - resource mask formed by bitwise OR of resource type constants (defined on IResource)
Returns:
true if the resources has a matching type, and false otherwise
See Also:
IResource.getType()

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire