Examples of IDisposable


Examples of getfacts.IDisposable

    {
        for(Component c : articlesPane.getComponents() )
        {
            if( c instanceof IDisposable)
            {
                IDisposable i = (IDisposable)c;
                i.dispose();
            }
        }
        frontPage.dispose();
    }
View Full Code Here

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

Examples of org.eclipse.ui.services.IDisposable

    }

    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

Examples of org.eclipse.ui.services.IDisposable

            // 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
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.