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.core.resources
Interface IResourceProxyVisitor


public interface IResourceProxyVisitor

This interface is implemented by objects that visit resource trees. The fast visitor is an optimized mechanism for tree traversal that creates a minimal number of objects. The visitor is provided with a callback interface, instead of a resource. Through the callback, the visitor can request information about the resource being visited.

Usage:

 class Visitor implements IResourceProxyVisitor {       
        public boolean visit (IResourceProxy proxy) { 
                //       your code here 
                return true;  
        } 
 } 
 ResourcesPlugin.getWorkspace().getRoot().accept(new Visitor(), IResource.NONE);
 

Clients may implement this interface.

Since:
2.1
See Also:
IResource.accept(IResourceVisitor)

Method Summary
 boolean visit ( IResourceProxy proxy)
          Visits the given resource.
 

Method Detail

visit

boolean visit(
IResourceProxy proxy)
              throws 
CoreException
Visits the given resource.

Parameters:
proxy - for requesting information about the resource being visited; this object is only valid for the duration of the invocation of this method, and must not be used after this method has completed
Returns:
true if the resource's members should be visited; false if they should be skipped
Throws:
CoreException - if the visit fails for some reason.

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