Package org.eclipse.swt.widgets

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


      toolkit.paintBordersFor(headClient);
      form.setHeadClient(headClient);
    } else {
      Control client = form.getForm().getHeadClient();
      if (client != null) {
        client.dispose();
        form.setHeadClient(null);
      }
    }
  }
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

                Control ws[] = statusLine.getChildren();
                for (int i = 0; i < ws.length; i++) {
                    Control w = ws[i];
                    Object data = w.getData();
                    if (data instanceof IContributionItem) {
                        w.dispose();
                    }
                }

                int oldChildCount = statusLine.getChildren().length;
                IContributionItem[] items = getItems();
View Full Code Here

                CoolItem coolItem = (CoolItem) coolItemsToRemove.get(i);
                if (!coolItem.isDisposed()) {
                    Control control = coolItem.getControl();
                    if (control != null) {
                        coolItem.setControl(null);
                        control.dispose();
                    }
                    coolItem.dispose();
                }
            }
View Full Code Here

                final CoolItem item = coolItems[i];
                if (!item.isDisposed()) {
                    Control control = item.getControl();
                    if (control != null) {
                        item.setControl(null);
                        control.dispose();
                    }
                    item.dispose();
                    changed = true;
                }
            }
View Full Code Here

                // if the toolbar does not contain any items then dispose of
                // coolItem
                coolItem.setData(null);
                Control control = coolItem.getControl();
                if ((control != null) && !control.isDisposed()) {
                    control.dispose();
                    coolItem.setControl(null);
                }
                if (!coolItem.isDisposed()) {
                    coolItem.dispose();
                }
View Full Code Here

                        ToolItem item = (ToolItem) toRemove.get(i);
                        if (!item.isDisposed()) {
                            Control ctrl = item.getControl();
                            if (ctrl != null) {
                                item.setControl(null);
                                ctrl.dispose();
                            }
                            item.dispose();
                        }
                    }
View Full Code Here

                        ToolItem item = mi[i];
                        if (!item.isDisposed()) {
                            Control ctrl = item.getControl();
                            if (ctrl != null) {
                                item.setControl(null);
                                ctrl.dispose();
                            }
                            item.dispose();
                        }
                    }
View Full Code Here

public void inLineEdit(final TableTreeEditor editor){
    // Clean up any previous editor control
      Control oldEditor = editor.getEditor();
    if (oldEditor != null)
      oldEditor.dispose()
    // Identify the selected row
    TableTreeItem[] selection = listEpsTree.getSelection();
    if (selection.length == 0) return;
    final TableTreeItem item = selection[0];
    // The control that will be the editor must be a child of the Table
View Full Code Here

          epiMaker = new EpiMaker();
          epiMaker.commentWriter(pluginInterface, lines);
            Control oldEditor = editor.getEditor();
          if (oldEditor != null)
          {
            oldEditor.dispose();
          }
          if (!item.isDisposed())
          item.setText(1, lines[2])
         
       
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.