Package org.eclipse.core.resources.refresh

Examples of org.eclipse.core.resources.refresh.IRefreshMonitor


public class MacRefreshProvider extends RefreshProvider {
  private MacRefreshMonitor _refreshMonitor;

  @Override
  public synchronized IRefreshMonitor installMonitor(IResource resource, IRefreshResult result) {
    IRefreshMonitor refreshMonitor;
    CoreServicesWrapper coreServices = CoreServicesWrapper.defaultInstance();
    if (coreServices.SystemVersion() >= 0x1050) {
      if (_refreshMonitor == null) {
        _refreshMonitor = new MacRefreshMonitor();
      }
View Full Code Here


    if (isMonitoring(resource))
      return false;
    boolean pollingMonitorNeeded = true;
    RefreshProvider[] refreshProviders = getRefreshProviders();
    for (int i = 0; i < refreshProviders.length; i++) {
      IRefreshMonitor monitor = safeInstallMonitor(refreshProviders[i], resource);
      if (monitor != null) {
        registerMonitor(monitor, resource);
        pollingMonitorNeeded = false;
      }
    }
View Full Code Here

    workspace.removeResourceChangeListener(this);
    workspace.getPathVariableManager().removeChangeListener(this);
    // synchronized: protect the collection during iteration
    synchronized (registeredMonitors) {
      for (Iterator i = registeredMonitors.keySet().iterator(); i.hasNext();) {
        IRefreshMonitor monitor = (IRefreshMonitor) i.next();
        monitor.unmonitor(null);
      }
    }
    registeredMonitors.clear();
    if (RefreshManager.DEBUG)
      System.out.println(RefreshManager.DEBUG_PREFIX + " stopping monitor manager."); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.refresh.IRefreshMonitor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.