Package org.eclipse.ui.services

Examples of org.eclipse.ui.services.IDisposable


    if (services != null) {
      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

            // Initialize the service locator.
            IServiceLocatorCreator slc = (IServiceLocatorCreator) parentSite
                    .getService(IServiceLocatorCreator.class);
            this.serviceLocator = (ServiceLocator) slc.createServiceLocator(
                    parentViewSite, null, new IDisposable(){
                        public void dispose() {
                            // TODO: Commented out due to Eclipse 4.2 incompatibility
                            /*final Control control = ((PartSite)parentViewSite).getPane().getControl();
                            if (control != null && !control.isDisposed()) {
                                ((PartSite)parentViewSite).getPane().doHide();
View Full Code Here

TOP

Related Classes of org.eclipse.ui.services.IDisposable

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.