Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 402122
Collapse All | Expand All

(-)a/examples/org.eclipse.rap.demo.controls/src/org/eclipse/rap/demo/controls/TableTab.java (-5 / +4 lines)
Lines 383-396 Link Here
383
383
384
  private void createDisposeSelectionButton() {
384
  private void createDisposeSelectionButton() {
385
    Button button = new Button( styleComp, SWT.PUSH );
385
    Button button = new Button( styleComp, SWT.PUSH );
386
    button.setText( "Dispose Selected Item" );
386
    button.setText( "Dispose Items 100, 101, 102" );
387
    button.addSelectionListener( new SelectionAdapter() {
387
    button.addSelectionListener( new SelectionAdapter() {
388
      @Override
388
      @Override
389
      public void widgetSelected( SelectionEvent event ) {
389
      public void widgetSelected( SelectionEvent event ) {
390
        TableItem[] items = table.getSelection();
390
        table.getItem( 100 ).dispose();
391
        for( int i = 0; i < items.length; i++ ) {
391
        table.getItem( 101 ).dispose();
392
          items[ i ].dispose();
392
        table.getItem( 102 ).dispose();
393
        }
394
      }
393
      }
395
    } );
394
    } );
396
  }
395
  }

Return to bug 402122