Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TreeItem.dispose()


 
  public void removeBookmark(BookmarkItem obj) {
    TreeItem node = map_4.get(obj);
    map_3.remove(node);
    map_4.remove(obj);
    node.dispose();
  }
 
  public void addBookmark(BookmarkItem obj) {
    TreeItem node = map_2.get(obj.getFolder());
    this.factoryTreeNode(obj, node);
View Full Code Here


    service2.deleteContainer(cinfo.getId(), cinfo.getDb(),
        cinfo.getContainerStr(), deleteSub);

    if (item instanceof TableItem) {
      treeItem.dispose();
    }
    item.dispose();
  }

  private void addFavorite() {
View Full Code Here

        }

        TreeItem[] items = itemSelected.getItems();
        for (TreeItem item : items) {
          if (!findNodeByItem(cnodes, item)) {
            item.dispose();
          }
        }
      }
    }
View Full Code Here

      TreeItem settingGroup = getSettingsGroupTreeItemByName(groupName);
      if (groupName.equals(COMMON_GROUP) || groupName.equals(NOT_IN_ANY_GROUP)) {
        disposeAllChildItems(settingGroup);
      } else {
        if (getConfigurationParameterDeclarations().getConfigurationGroupDeclarations(groupName).length == 1) {
          settingGroup.dispose();
        } else {

          for (int i = 0; i < cps.length; i++) {
            findMatchingParm(settingGroup, cps[i].getName()).dispose();
          }
View Full Code Here

            treeItem.setData(features.get(0));
            runModifyAttribute(treeItem, "newName", NAME); //$NON-NLS-1$
            runModifyAttribute(treeItem, 22, ID);
            runModifyAttribute(treeItem, 22.2, DISTANCE);
        }finally{
            treeItem.dispose();
            tree.dispose();
            shell.dispose();
        }
    }
View Full Code Here

      TreeItem settingGroup = getSettingsGroupTreeItemByName(groupName);
      if (groupName.equals(COMMON_GROUP) || groupName.equals(NOT_IN_ANY_GROUP)) {
        disposeAllChildItems(settingGroup);
      } else {
        if (getConfigurationParameterDeclarations().getConfigurationGroupDeclarations(groupName).length == 1) {
          settingGroup.dispose();
        } else {

          for (int i = 0; i < cps.length; i++) {
            findMatchingParm(settingGroup, cps[i].getName()).dispose();
          }
View Full Code Here

      TreeItem settingGroup = getSettingsGroupTreeItemByName(groupName);
      if (groupName.equals(COMMON_GROUP) || groupName.equals(NOT_IN_ANY_GROUP)) {
        disposeAllChildItems(settingGroup);
      } else {
        if (getConfigurationParameterDeclarations().getConfigurationGroupDeclarations(groupName).length == 1) {
          settingGroup.dispose();
        } else {

          for (int i = 0; i < cps.length; i++) {
            findMatchingParm(settingGroup, cps[i].getName()).dispose();
          }
View Full Code Here

    if (event.widget == resourcesUI &&
        event.type == SWT.Expand) {
      TreeItem expandedNode = (TreeItem) event.item;
      TreeItem maybeDummy = expandedNode.getItem(0);
      if (null == maybeDummy.getData()) {
        maybeDummy.dispose();
        IResource parentResource = (IResource)expandedNode.getData();
        try {
          populate(expandedNode, ((IContainer)parentResource).members());
        } catch (CoreException e) {
          throw new InternalErrorCDE("unhandled exception", e);
View Full Code Here

            TreeItem item = tree.getItem(index);
            if (item.getData() != null) {
              removedPath = getTreePathFromItem(item);
              disassociate(item);
            }
            item.dispose();
          }
        } else {
          Widget[] parentItems = internalFindItems(parentOrTreePath);
          for (int i = 0; i < parentItems.length; i++) {
            TreeItem parentItem = (TreeItem) parentItems[i];
View Full Code Here

              TreeItem item = parentItem.getItem(index);
              if (item.getData() != null) {
                removedPath = getTreePathFromItem(item);
                disassociate(item);
              }
              item.dispose();
            }
          }
        }
        if (removedPath != null) {
          boolean removed = false;
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.