Package org.eclipse.swt.widgets

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


     * been disposed). Subclasses may extend.
     */
    public void dispose() {
        Control ctrl = getControl();
        if (ctrl != null && !ctrl.isDisposed()) {
      ctrl.dispose();
    }
    }

    /**
     * The <code>Page</code> implementation of this <code>IPage</code> method returns
View Full Code Here


        final TableEditor editor = new TableEditor(namespace2packageTable);
        namespace2packageTable.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

          int pos = table.getSelectionIndex();
         
          if (pos < 0 || !table.isEnabled()) return;
          Control oldEditor = editor.getEditor();
          if (oldEditor != null)
                  oldEditor.dispose();


//---
          Rectangle clientArea = table.getClientArea();
          Point pt = new Point(arg0.x, arg0.y);
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

            // their
            // dispose method.
            // The page's control is a child of this view's control so if
            // this view
            // is closed, the page's control will already be disposed.
            control.dispose();
        }

        // free the page
        doDestroyPage(rec.getTarget(), rec);
View Full Code Here

   */
  private void deleteOldEditors() {

    Control oldEditorX = editorX.getEditor();
    if (oldEditorX != null)
      oldEditorX.dispose();

    Control oldEditorY = editorY.getEditor();
    if (oldEditorY != null)
      oldEditorY.dispose();
  }
View Full Code Here

    if (oldEditorX != null)
      oldEditorX.dispose();

    Control oldEditorY = editorY.getEditor();
    if (oldEditorY != null)
      oldEditorY.dispose();
  }

  /**
   * Listen to the changes occurred to the command and to the mark model.
   */
 
View Full Code Here

                    if (img != null) {
                        img.dispose();
                        ((Button) c).getImage().dispose();
                    }
                }
                c.dispose();
            }
        }

        fExtent = null;
        composite = null;
View Full Code Here

  private void handleInput() {
    // Clean up any previous editor control
    Control oldEditor = this.editor.getEditor();

    if (oldEditor != null) {
      oldEditor.dispose();
    }

    // Identify the selected row, only allow input if there is a single
    // selected row
    TreeItem[] selection = this.tree.getSelection();
View Full Code Here

    protected synchronized void removeComponent(int position) {
        if (position < componentList.size()) {
            componentList.remove(position);
            Control control = (Control) controlList.remove(position);
           
            control.dispose();
        }
    }
   
    public void setAttributeDefinition(AttributeDefinition attr) {
        super.setAttributeDefinition(attr);
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.