Examples of dispose()


Examples of org.eclipse.test.performance.PerformanceMeter.dispose()

    meter.start();
    meter.stop();
   
    meter.commit();
   
    meter.dispose();
  }

}
View Full Code Here

Examples of org.eclipse.ui.IActionDelegate2.dispose()

    if (delegate instanceof IWorkbenchWindowActionDelegate) {
      final IWorkbenchWindowActionDelegate workbenchWindowDelegate = (IWorkbenchWindowActionDelegate) delegate;
      workbenchWindowDelegate.dispose();
    } else if (delegate instanceof IActionDelegate2) {
      final IActionDelegate2 delegate2 = (IActionDelegate2) delegate;
      delegate2.dispose();
    }
  }

  public final Object execute(final ExecutionEvent event) {
    final IAction action = getAction();
View Full Code Here

Examples of org.eclipse.ui.IEditorPart.dispose()

        }
            }
   
            if (part != null) {
                try {
                    part.dispose();
                } catch (RuntimeException re) {
          StatusManager.getManager().handle(
              StatusUtil.newStatus(WorkbenchPlugin.PI_WORKBENCH,
                  re));
        }
View Full Code Here

Examples of org.eclipse.ui.ISourceProvider.dispose()

  public final void dispose() {
    final Iterator sourceProviderItr = sourceProviders.iterator();
    while (sourceProviderItr.hasNext()) {
      final ISourceProvider sourceProvider = (ISourceProvider) sourceProviderItr
          .next();
      sourceProvider.dispose();
    }
    sourceProviders.clear();
    sourceProvidersByName.clear();
  }
View Full Code Here

Examples of org.eclipse.ui.IWorkbenchWindowActionDelegate.dispose()

  public final void dispose() {
    final IActionDelegate delegate = getDelegate();
    if (delegate instanceof IWorkbenchWindowActionDelegate) {
      final IWorkbenchWindowActionDelegate workbenchWindowDelegate = (IWorkbenchWindowActionDelegate) delegate;
      workbenchWindowDelegate.dispose();
    } else if (delegate instanceof IActionDelegate2) {
      final IActionDelegate2 delegate2 = (IActionDelegate2) delegate;
      delegate2.dispose();
    }
  }
View Full Code Here

Examples of org.eclipse.ui.SubActionBars.dispose()

        }
        if (rec != null) {
            IActionSet set = rec.set;
            SubActionBars bars = rec.bars;
            if (bars != null) {
                bars.dispose();
            }
            if (set != null) {
                set.dispose();
            }
        }
View Full Code Here

Examples of org.eclipse.ui.console.IConsolePageParticipant.dispose()

      Object[] participants = listeners.getListeners();
      for (int i = 0; i < participants.length; i++) {
              final IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
              SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            participant.dispose();
          }
          public void handleException(Throwable exception) {
            ConsolePlugin.log(exception);
          }
        });
View Full Code Here

Examples of org.eclipse.ui.forms.IDetailsPage.dispose()

    public void dispose() {
        for (Class< ? > key : pageMap.keySet()) {
            controlCache.remove(key);
            IDetailsPage page = pageMap.get(key);
            page.dispose();
        }
    }

    public void initialize(IManagedForm form) {
        this.managedForm = form;
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.dispose()

                                        String description) {
        final FormToolkit formToolkit = new FormToolkit(parent.getShell()
                .getDisplay());
        parent.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent arg0) {
                formToolkit.dispose();
            }
        });
        style |= Section.TITLE_BAR | Section.DESCRIPTION;
        Section section = formToolkit.createSection(parent, style);
        section.setText(title);
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.Section.dispose()

    }
  }

  protected void delAccountSection(GOIMAccount account) {
    Section accSec = sections.remove(account);
    accSec.dispose();
  }

  public static void updateRosterEntryPresence(FormToolkit tk,final GOIMAccount account, String id, Control entry) {
    RosterEntry rosterEntry = (RosterEntry)entry.getData("rosterEntry");
    String jid = rosterEntry == null ? id : rosterEntry.getUser();
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.