Examples of dispose()


Examples of org.eclipse.jface.action.ContributionItem.dispose()

      ContributionItem item = (ContributionItem) adjunctContributions
          .get(i);
      IContributionManager parent = item.getParent();
      if (parent != null) {
        parent.remove(item);
        item.dispose();
      }
    }
    toolBarContributionItem = null;
    coolItemToolBarMgr = null;
    adjunctContributions = new ArrayList();
View Full Code Here

Examples of org.eclipse.jface.action.IContributionItem.dispose()

   
    private IContributionItem[] getContributionItemsToFill() {
        if (oldItems != null) {
            for (int i = 0; i < oldItems.length; i++) {
                IContributionItem oldItem = oldItems[i];
                oldItem.dispose();
            }
            oldItems = null;
        }
        oldItems = getContributionItems();
        return oldItems;
View Full Code Here

Examples of org.eclipse.jface.action.MenuManager.dispose()

      }
      if (managers.size()>0) {
        for (Iterator iterator = managers.iterator(); iterator
            .hasNext();) {
          MenuManager mgr = (MenuManager) iterator.next();
          mgr.dispose();
        }
      }
      menuExtenders = null;
    }
    subActionBars.dispose();
View Full Code Here

Examples of org.eclipse.jface.commands.ActionHandler.dispose()

    if (commandId != null) {
      final Object value = globalActionHandlersByCommandId.get(commandId);
      if (value instanceof ActionHandler) {
        // This handler is about to get clobbered, so dispose it.
        final ActionHandler handler = (ActionHandler) value;
        handler.dispose();
      }

      if (globalAction instanceof CommandAction) {
        final String actionId = globalAction.getId();
        if (actionId != null) {
View Full Code Here

Examples of org.eclipse.jface.menus.IWidget.dispose()

     */
    public void dock(int newSide) {
      // out with the old...
      for (Iterator iter = widgets.iterator(); iter.hasNext();) {
        IWidget widget = (IWidget) iter.next();
        widget.dispose();
       
        cacheEntry.removeWidget(widget);
      }

      // ...in with the new
View Full Code Here

Examples of org.eclipse.jface.resource.LocalResourceManager.dispose()

        }
        return super.getText(element);
      }

      public void dispose() {
        images.dispose();
        super.dispose();
      }
    });

    workingsetComboViewer.setComparator(new ViewerComparator());
View Full Code Here

Examples of org.eclipse.jface.text.formatter.IFormattingContext.dispose()

              setRedraw(true);
            }

            restoreSelection();
            if (context != null)
              context.dispose();
          }
          return;
        }
      default:
        super.doOperation(operation);
View Full Code Here

Examples of org.eclipse.jface.viewers.IBaseLabelProvider.dispose()

        IContentProvider contentProvider = tableViewer.getContentProvider();
        if (contentProvider != null)
            contentProvider.dispose();
        IBaseLabelProvider labelProvider = tableViewer.getLabelProvider();
        if (labelProvider != null)
            labelProvider.dispose();
        Control control = tableViewer.getControl();
        if (control != null)
            control.dispose();
        tableViewer = null;
    }
View Full Code Here

Examples of org.eclipse.jface.viewers.IContentProvider.dispose()

    private void disposeTableViewer() {
        if (tableViewer == null)
            return;
        IContentProvider contentProvider = tableViewer.getContentProvider();
        if (contentProvider != null)
            contentProvider.dispose();
        IBaseLabelProvider labelProvider = tableViewer.getLabelProvider();
        if (labelProvider != null)
            labelProvider.dispose();
        Control control = tableViewer.getControl();
        if (control != null)
View Full Code Here

Examples of org.eclipse.jface.viewers.ILabelDecorator.dispose()

    @Override
    public void dispose() {
        if (fLabelDecorators != null) {
            for (int i = 0; i < fLabelDecorators.size(); i++) {
                final ILabelDecorator decorator = fLabelDecorators.get(i);
                decorator.dispose();
            }
            fLabelDecorators = null;
        }
        fImageLabelProvider.dispose();
    }
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.