Package org.eclipse.swt.widgets

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


    item.setData(new TreeData(Editor.CONFIG, config, Options.getHelpURL("config")));
    item.setData("key", "config");
    item.setData("copy_element", config);
    item.setText("Config");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    item = new TreeItem(tree, SWT.NONE);
    item.setData(new TreeData(Editor.BASE, config, Options.getHelpURL("base")));
    item.setData("key", "base");
    item.setData("copy_element", config);
    item.setText("Base Files");
View Full Code Here


    item.setData(new TreeData(Editor.BASE, config, Options.getHelpURL("base")));
    item.setData("key", "base");
    item.setData("copy_element", config);
    item.setText("Base Files");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    item = new TreeItem(tree, SWT.NONE);
    item.setData(new TreeData(Editor.PARAMETER, config, Options.getHelpURL("parameter")));
    // item.setData("key", "params.param");
    item.setData("key", "params_@_param");
    item.setData("copy_element", config);
View Full Code Here

    // item.setData("key", "params.param");
    item.setData("key", "params_@_param");
    item.setData("copy_element", config);
    item.setText("Parameter");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    item = new TreeItem(tree, SWT.NONE);
    item.setData(new TreeData(Editor.SECURITY, config, Options.getHelpURL("security"), "security"));
    item.setData("key", "security");
    item.setData("max_occur", "1");
    item.setData("copy_element", config);
View Full Code Here

    item.setData("key", "security");
    item.setData("max_occur", "1");
    item.setData("copy_element", config);
    item.setText("Security");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    item = new TreeItem(tree, SWT.NONE);
    item.setData(new TreeData(Editor.CLUSTER, config, Options.getHelpURL("cluster"), "cluster"));
    item.setData("key", "cluster");
    item.setData("max_occur", "1");
    item.setData("copy_element", config);
View Full Code Here

    item.setData("key", "cluster");
    item.setData("max_occur", "1");
    item.setData("copy_element", config);
    item.setText("Cluster");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    item = new TreeItem(tree, SWT.NONE);
    item.setData(new TreeData(Editor.PROCESS_CLASSES, config, Options.getHelpURL("process_classes"), "process_classes"));
    item.setData("key", "process_classes");
    item.setData("max_occur", "1");
    item.setData("copy_element", config);
View Full Code Here

    item.setData(new TreeData(Editor.SCRIPT, config, Options.getHelpURL("start_script"), "script"));
    item.setData("key", "script");
    item.setData("copy_element", config);
    item.setText("Start Script");
    if (type == SchedulerDom.DIRECTORY)
      item.dispose();
    if (type != SchedulerDom.DIRECTORY) {
      TreeItem http_server = new TreeItem(tree, SWT.NONE);
      // http_server.setData(new TreeData(Editor.WEBSERVICES, config, Options.getHelpURL("http_server"), "http_server"));
      http_server.setData(new TreeData(Editor.HTTP_SERVER, config, Options.getHelpURL("http_server"), "http_server"));
      // http_server.setData("key", "http_server");
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

                // parent item is collapsed, then we are
                // being asked to remove the dummy node. We'll
                // just ignore the request to remove the dummy
                // node (bug 292322 and bug 296573).
                if (index > 0 || parentItem.getExpanded()) {
                  item.dispose();
                }
              } else {
                removedPath = getTreePathFromItem(item);
                disassociate(item);
                item.dispose();
View Full Code Here

                  item.dispose();
                }
              } else {
                removedPath = getTreePathFromItem(item);
                disassociate(item);
                item.dispose();
              }
            }
          }
        }
        if (removedPath != null) {
View Full Code Here

 
  public void removeFolder(BookmarkFolder folder) {
    TreeItem item = map_2.get(folder);
    map_1.remove(item);
    map_2.remove(folder);
    item.dispose();
  }
 
  public void removeBookmark(BookmarkItem obj) {
    TreeItem node = map_4.get(obj);
    map_3.remove(node);
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.