1 11 package org.eclipse.core.internal.refresh; 12 13 import org.eclipse.core.internal.resources.Workspace; 14 import org.eclipse.core.resources.IResource; 15 import org.eclipse.core.resources.refresh.IRefreshMonitor; 16 17 24 public class InternalRefreshProvider { 25 28 protected IRefreshMonitor createPollingMonitor(IResource resource) { 29 PollingMonitor monitor = ((Workspace)resource.getWorkspace()).getRefreshManager().monitors.pollMonitor; 30 monitor.monitor(resource); 31 return monitor; 32 } 33 34 37 public void resetMonitors(IResource resource) { 38 MonitorManager manager = ((Workspace)resource.getWorkspace()).getRefreshManager().monitors; 39 manager.unmonitor(resource); 40 manager.monitor(resource); 41 } 42 } 43 | Popular Tags |