|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.internal.refresh.RefreshManager
public class RefreshManager
Manages auto-refresh functionality, including maintaining the active set of monitors and controlling the job that performs periodic refreshes on out of sync resources.
| Field Summary | |
|---|---|
static boolean |
DEBUG
|
static java.lang.String |
DEBUG_PREFIX
|
| Constructor Summary | |
|---|---|
RefreshManager(IWorkspace workspace)
|
|
| Method Summary | |
|---|---|
void |
monitorFailed(IRefreshMonitor monitor,
IResource resource)
Notifies that the given monitor has encountered a failure from which it cannot recover while monitoring the given resource. |
void |
propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
Checks for changes to the PREF_AUTO_UPDATE property. |
void |
refresh(IResource resource)
Requests that the provided resource be refreshed. |
void |
shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
Shuts down the refresh manager. |
void |
startup(org.eclipse.core.runtime.IProgressMonitor monitor)
Initializes the refresh manager. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean DEBUG
public static final java.lang.String DEBUG_PREFIX
| Constructor Detail |
|---|
public RefreshManager(IWorkspace workspace)
| Method Detail |
|---|
public void monitorFailed(IRefreshMonitor monitor,
IResource resource)
IRefreshResult
If the given resource is null it indicates that the
monitor has failed completely, and the refresh manager will have to
take over the monitoring responsibilities for all resources that the
monitor was monitoring.
monitorFailed in interface IRefreshResultmonitor - a monitor which has encountered a failure that it
cannot recover fromresource - the resource that the monitor can no longer
monitor, or null to indicate that the monitor can no
longer monitor any of the resources it was monitoringpublic void propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent event)
propertyChange in interface org.eclipse.core.runtime.Preferences.IPropertyChangeListenerPreferences.IPropertyChangeListener#propertyChange(Preferences.PropertyChangeEvent)public void refresh(IResource resource)
IRefreshResult
refresh in interface IRefreshResultresource - the resource to refreshpublic void shutdown(org.eclipse.core.runtime.IProgressMonitor monitor)
shutdown in interface IManagerpublic void startup(org.eclipse.core.runtime.IProgressMonitor monitor)
startup in interface IManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||