Package org.eclipse.jface.action

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


      IContributionItem item = items[i];
      if (item instanceof PluginActionCoolBarContributionItem) {
        PluginActionCoolBarContributionItem actionSetItem = (PluginActionCoolBarContributionItem) item;
        if (actionSetItem.getActionSetId().equals(actionSetId)) {
          coolItemToolBarMgr.remove(item);
          item.dispose();
        }
      } else {
        // leave separators and group markers intact, doing
        // so allows ordering to be maintained when action sets
        // are removed then added back
View Full Code Here

      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

    if (item != null) {
      if (item instanceof PerspectiveBarContributionItem) {
        perspectiveBar
            .removeItem((PerspectiveBarContributionItem) item);
      }
      item.dispose();
      perspectiveBar.update(false);
      setCoolItemSize(coolItem);
    }
  }
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.