Examples of dispose()


Examples of org.eclipse.debug.ui.CommonTab.dispose()

                        pythonInterpreterManager, projName);

        // Common Tab Arguments
        CommonTab tab = new CommonTab();
        tab.setDefaults(createdConfiguration);
        tab.dispose();
        return createdConfiguration;
    }

    /**
     * @param project
View Full Code Here

Examples of org.eclipse.debug.ui.IDebugModelPresentation.dispose()

        } else {
            dialog.setMessage("Choose a launch configuration to run");
        }
        dialog.setMultipleSelection(false);
        int result = dialog.open();
        labelProvider.dispose();
        if (result == Window.OK) { return (ILaunchConfiguration) dialog.getFirstResult(); }
        return null;
    }
}
View Full Code Here

Examples of org.eclipse.dltk.core.environment.IDeployment.dispose()

      return new ArrayList();
    }
    List output = getScriptOutput(process.getInputStream());
    getScriptOutput(process.getErrorStream());
    process.destroy();
    deployment.dispose();
    return output;
  }

  private static IFileHandle deploy(IDeployment deployment) {
    IFileHandle script;
View Full Code Here

Examples of org.eclipse.draw2d.Graphics.dispose()

      // Draws the image on the original graphics
      graphics.drawImage(image, 0, 0);

      // Disposes image (and GC btw) and SWT graphics
      image.dispose();
      swtGraphics.dispose();
    }
  }
}
View Full Code Here

Examples of org.eclipse.draw2d.SWTGraphics.dispose()

            imageLoader.save(stream, format);
        } catch (Throwable t) {
            DroolsEclipsePlugin.log(t);
        } finally {
            if (g != null) {
                g.dispose();
            }
            if (gc != null) {
                gc.dispose();
            }
            if (image != null) {
View Full Code Here

Examples of org.eclipse.e4.core.contexts.IEclipseContext.dispose()

      // failed to create the widget, dispose its context if necessary
      if (element instanceof MContext) {
        MContext ctxt = (MContext) element;
        IEclipseContext lclContext = ctxt.getContext();
        if (lclContext != null) {
          lclContext.dispose();
          ctxt.setContext(null);
        }
      }
    }
   
View Full Code Here

Examples of org.eclipse.e4.xwt.databinding.BindingContext.dispose()

        widget);
    dataBindingContext.setRealm(XWT.getRealm());
    widget.addDisposeListener(new DisposeListener() {

      public void widgetDisposed(DisposeEvent e) {
        dataBindingContext.dispose();
      }
    });

    UserData.setLocalData(host,
        IUserDataConstants.XWT_BINDING_CONTEXT_KEY,
View Full Code Here

Examples of org.eclipse.e4.xwt.databinding.IBindingContext.dispose()

        widget);
    dataBindingContext.setRealm(XWT.getRealm());
    widget.addDisposeListener(new DisposeListener() {

      public void widgetDisposed(DisposeEvent e) {
        dataBindingContext.dispose();
      }
    });

    UserData.setLocalData(host,
        IUserDataConstants.XWT_BINDING_CONTEXT_KEY,
View Full Code Here

Examples of org.eclipse.ecf.core.IContainer.dispose()

    final ServiceReference reference = serviceRegistration.getReference();
    final IContainer aContainer = (DnsSdDiscoveryContainerAdapter) context.getService(reference);
   
    serviceRegistration.unregister();
    final IContainer container = (IContainer) aContainer.getAdapter(IContainer.class);
    container.dispose();
    container.disconnect();
  }
 
  /**
   * A ManagedServiceFactory capable to handle DnsSdDiscoveryContainerAdapters
View Full Code Here

Examples of org.eclipse.ecf.datashare.IChannel.dispose()

        final IChannel channel = (IChannel) it.next();
        // dispose the channel in a SafeRunner so exceptions don't
        // prevent us from disposing other channels
        SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            channel.dispose();
          }

          public void handleException(Throwable t) {
            log(new Status(IStatus.ERROR, Util.PLUGIN_ID,
                "Error disposing channel: " + channel, t)); //$NON-NLS-1$
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.