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

Auto-refresh providers

Identifier:
org.eclipse.core.resources.refreshProviders

Since:
3.0

Description:
The workspace supports a mode where changes that occur in the file system are automatically detected and reconciled with the workspace in memory. By default, this is accomplished by creating a monitor that polls the file system and periodically searching for changes. The monitor factories extension point allows clients to create more efficient monitors, typically by hooking into some native file system facility for change callbacks.

Configuration Markup:

<!ELEMENT extension ( refreshProvider)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT refreshProvider EMPTY>

<!ATTLIST refreshProvider

name  CDATA #REQUIRED

class CDATA #REQUIRED

>

  • name - A human-readable name for the monitor factory
  • class - The fully qualified name of a class implementing org.eclipse.core.resources.refresh.RefreshProvider.

Examples:
Following is an example of an adapter declaration. This example declares that this plug-in will provide an adapter factory that will adapt objects of type IFile to objects of type MyFile.


   <extension
         id=
"coolProvider"

         point=
"org.eclipse.core.resources.refreshProviders"
>
      <refreshProvider
            name=
"Cool Refresh Provider"

            class=
"com.xyz.CoolRefreshProvider"
>
      </refreshProvider>
   </extension>

Supplied Implementation:
The org.eclipse.core.resources.win32 fragment provides a native refresh monitor that uses win32 file system notification callbacks. The workspace also supplies a default naive polling-based monitor that can be used for file systems that do not have native refresh callbacks available.


Copyright (c) 2004, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html


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