1 11 package org.eclipse.core.internal.resources.refresh.win32; 12 13 import org.eclipse.core.resources.IResource; 14 import org.eclipse.core.resources.refresh.*; 15 16 22 public class Win32RefreshProvider extends RefreshProvider { 23 private Win32Monitor monitor; 24 25 30 public IRefreshMonitor installMonitor(IResource resource, IRefreshResult result) { 31 if (resource.getLocation() == null || !resource.exists() || resource.getType() == IResource.FILE) 32 return null; 33 if (monitor == null) 34 monitor = new Win32Monitor(result); 35 if (monitor.monitor(resource)) 36 return monitor; 37 return null; 38 } 39 } 40 | Popular Tags |