|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.internal.refresh.InternalRefreshProvider
org.eclipse.core.resources.refresh.RefreshProvider
public abstract class RefreshProvider
The abstract base class for all auto-refresh providers. This class provides
the infrastructure for defining an auto-refresh provider and fulfills the
contract specified by the org.eclipse.core.resources.refreshProviders
standard extension point.
All auto-refresh providers must subclass this class. A
RefreshProvider
is responsible for creating
IRefreshMonitor
objects. The provider must decide if
it is capable of monitoring the file, or folder and subtree under the path that is provided.
Constructor Summary | |
---|---|
RefreshProvider()
|
Method Summary | |
---|---|
abstract IRefreshMonitor |
installMonitor(IResource resource,
IRefreshResult result)
Returns an IRefreshMonitor that will monitor a resource. |
void |
resetMonitors(IResource resource)
Resets the installed monitors for the given resource. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RefreshProvider()
Method Detail |
---|
public abstract IRefreshMonitor installMonitor(IResource resource, IRefreshResult result)
IRefreshMonitor
that will monitor a resource. If
the resource is an IContainer
the monitor will also
monitor the subtree under the container. Returns null
if
this provider cannot create a monitor for the given resource. The
provider may return the same monitor instance that has been provided for
other resources.
The monitor should send results and failures to the provided refresh result.
resource
- the resource to monitorresult
- the result callback for notifying of failure or of resources that need
refreshing
null
if the resource cannot be monitoredcreatePollingMonitor(IResource)
public void resetMonitors(IResource resource)
This method is intended to be used by refresh providers that need to change the refresh monitor that they previously used to monitor a resource.
resetMonitors
in class InternalRefreshProvider
resource
- The resource to reset the monitors for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |