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 276675 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/swt/internal/widgets/tablekit/TableLCA.java (-3 / +4 lines)
Lines 168-174 Link Here
168
          newSelection[ i ] = Integer.parseInt( selectedIndices[ i ] );
168
          newSelection[ i ] = Integer.parseInt( selectedIndices[ i ] );
169
        }
169
        }
170
      }
170
      }
171
      table.setSelection( newSelection );
171
      table.deselectAll();
172
      table.select( newSelection );
172
    }
173
    }
173
  }
174
  }
174
175
Lines 215-221 Link Here
215
216
216
  private static void readWidgetSelected( final Table table ) {
217
  private static void readWidgetSelected( final Table table ) {
217
    if( WidgetLCAUtil.wasEventSent( table, JSConst.EVENT_WIDGET_SELECTED ) ) {
218
    if( WidgetLCAUtil.wasEventSent( table, JSConst.EVENT_WIDGET_SELECTED ) ) {
218
      // TODO [rh] do something reasonable when index points to unresolved item 
219
      // TODO [rh] do something reasonable when index points to unresolved item
219
      int index = getWidgetSelectedIndex();
220
      int index = getWidgetSelectedIndex();
220
      // Bugfix: check if index is valid before firing event to avoid problems
221
      // Bugfix: check if index is valid before firing event to avoid problems
221
      //         with fast scrolling
222
      //         with fast scrolling
Lines 382-388 Link Here
382
      writer.call( "setScrollBarsVisibile", args );
383
      writer.call( "setScrollBarsVisibile", args );
383
    }
384
    }
384
  }
385
  }
385
  
386
386
  //////////////////
387
  //////////////////
387
  // Helping methods
388
  // Helping methods
388
389

Return to bug 276675