Package org.eclipse.swt.widgets

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


        for (INatExample example : exampleControlMap.keySet()) {
            // Stop
            example.onStop();

            Control exampleControl = exampleControlMap.get(example);
            exampleControl.dispose();
        }

        tabFolder.dispose();

        shell.dispose();
View Full Code Here


                // Stop
                example.onStop();

                Control exampleControl = exampleControlMap.get(example);
                if (exampleControl != null && !exampleControl.isDisposed()) {
                    exampleControl.dispose();
                }

                exampleControlMap.remove(example);
                examplePathMap.remove(examplePath);
                link.dispose();
View Full Code Here

            text.dispose();
            toolbar.dispose();
           
            Control control = decorator.control();
            decorator.removeEditorControl(control);
            control.dispose();

            layout();
        } else {
            binding.refreshModelElement(null);
        }
View Full Code Here

   */
  public void setTab(GraphicsTab tab) {
    Control[] children = tabControlPanel.getChildren();
    for (int i = 0; i < children.length; i++) {
      Control control = children[i];
      control.dispose();
    }
    if (this.tab != null)
      this.tab.dispose();
    this.tab = tab;
    if (tab != null) {
View Full Code Here

    private void openTableEditor( TableItem item )
    {
        // Clean up any previous editor control
        Control oldEditor = tableEditor.getEditor();
        if ( oldEditor != null )
            oldEditor.dispose();

        if ( item == null )
            return;

        // The control that will be the editor must be a child of the Table
View Full Code Here

    fDecorators.remove(rulerColumn);
    if (rulerColumn != null) {
      Control cc= rulerColumn.getControl();
      if (cc != null && !cc.isDisposed()) {
        fComposite.childRemoved(cc);
        cc.dispose();
      }
    }
    layoutTextViewer();
  }
View Full Code Here

  }

  public void removeContentForItem( int index ) {
    Control content = contentHolder.remove( getKey( index ) );
    if( content != null ) {
      content.dispose();
    }
  }

  private Integer getKey( int index ) {
    return Integer.valueOf( index );
View Full Code Here

    boolean refreshRequired = false;
    if(buttonComposite != null) {
      Control[] children = buttonComposite.getChildren();
      for (int i = 0; i < children.length; i++) {
        Control control = children[i];
        control.dispose();
      }
     
      refreshRequired = true;
    } else {
      createSubItemButtonComposite();
View Full Code Here

    if(buttonComposite != null) {
      Control[] controls = buttonComposite.getChildren();
      for (int i = 0; i < controls.length; i++) {
        Control control = controls[i];
        if(control instanceof ImageHyperlink) {
          control.dispose();
        }
      }
     
      refreshRequired = true;
    } else {
View Full Code Here

    table.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent e) {
        // Clean up any previous editor control
        Control oldEditor = editor.getEditor();
        if (oldEditor != null)
          oldEditor.dispose();

        // Identify the selected row
        TableItem item = (TableItem) e.item;
        if (item == null)
          return;
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.