Examples of dispose()


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

            try {
                testText = new Text(composite, SWT.SEARCH | SWT.ICON_CANCEL);
                useNativeSearchField = new Boolean((testText.getStyle() & SWT.ICON_CANCEL) != 0);
            } finally {
                if (testText != null) {
                    testText.dispose();
                }
            }
               
        }
        return useNativeSearchField.booleanValue();
View Full Code Here

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

        if (this.textBindings.size() > 1) {
            binding.removeListener();
            this.textBindings.remove(binding);
            text.dispose();
            toolbar.dispose();
           
            Control control = decorator.control();
            decorator.removeEditorControl(control);
            control.dispose();
View Full Code Here

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

                            Control ctrl = item.getControl();
                            if (ctrl != null) {
                                item.setControl(null);
                                ctrl.dispose();
                            }
                            item.dispose();
                        }
                    }

                    // add new items
                    IContributionItem src, dest;
View Full Code Here

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

        }
      });

      addDisposeListener(new DisposeListener() {
        public void widgetDisposed(DisposeEvent e) {
          unreadStateToolTip.dispose();
          newStateToolTip.dispose();
        }
      });
    }
View Full Code Here

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

    if (tracker.open()) {
      if (!shell.isDisposed()) {
        shell.setBounds(tracker.getRectangles()[0]);
      }
    }
    tracker.dispose();
    listenToDeactivate = oldListenToDeactivate;
  }

  /**
   * Show the dialog's menu. This message has no effect if the receiver was
View Full Code Here

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

  private void destroyTrayItems() {
    final Tray tray = getSystemTray();
    UIThreadRunnable.syncExec(new VoidResult() {
      public void run() {
        tray.dispose();
      }
    });

  }
View Full Code Here

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

                            ti.setToolTipText(Tab1_Subtab_1.version + " available (double click to remove alert)");
                            ti.addListener(SWT.DefaultSelection, new Listener()
                            {
                                public void handleEvent(Event e)
                                {
                                    ti.dispose();
                                }
                            });
                        }
                    });
       
View Full Code Here

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

            runModifyAttribute(treeItem, "newName", NAME); //$NON-NLS-1$
            runModifyAttribute(treeItem, 22, ID);
            runModifyAttribute(treeItem, 22.2, DISTANCE);
        }finally{
            treeItem.dispose();
            tree.dispose();
            shell.dispose();
        }
    }

    private void runModifyAttribute( TreeItem treeItem, final Object newValue, final String attributeToTest ) throws Exception {
View Full Code Here

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

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

      if (childItems.length > 0) {
        for (int j = 0; j < childItems.length; j++) {
          Widget childItem = childItems[j];
          if (childItem instanceof Item) {
            disassociate((Item) childItem);
            childItem.dispose();
          }
        }
      } else {
        // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=210747
        Object parent = getParentElement(element);
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.