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

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

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Refresh providers

The org.eclipse.core.resources.refreshProviders extension point allows plug-ins to register and implement their own mechanisms for monitoring the external file system and refreshing the workspace appropriately. This extension point is intended for plug-ins that implement specialized, often native, schemes for monitoring file system changes.

The plug-in fragment org.eclipse.core.resources.win32 implements a native refresh monitor based on file system callbacks. A more naive refresh monitor based on polling is defined for other platforms.

The following snippet shows the definition for this extension in the org.eclipse.core.resources.win32 fragment.

   <extension
         id="win32"
         point="org.eclipse.core.resources.refreshProviders">
      <refreshProvider
            name="%win32MonitorFactoryName"
            class="org.eclipse.core.internal.resources.refresh.win32.Win32RefreshProvider">
      </refreshProvider>
   </extension>

The class attribute must be a class that extends RefreshProvider . This class is responsible for installing a monitor on a specific resource and its resource subtree if it is a project or folder. The monitor must implement IRefreshMonitor .


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