Package org.eclipse.ui.services

Examples of org.eclipse.ui.services.IDisposable.dispose()


      final Iterator serviceItr = services.values().iterator();
      while (serviceItr.hasNext()) {
        final Object object = serviceItr.next();
        if (object instanceof IDisposable) {
          final IDisposable service = (IDisposable) object;
          service.dispose();
        }
      }
      services = null;
    }
  }
View Full Code Here


    if (services.containsKey(api)) {
      final Object currentService = services.remove(api);
      if (currentService instanceof IDisposable) {
        final IDisposable disposable = (IDisposable) currentService;
        disposable.dispose();
      }
    }

    if (service == null) {
      if (services.isEmpty()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.