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 360152
Collapse All | Expand All

(-)src/org/eclipse/swt/internal/widgets/tablekit/TableLCA.java (-13 / +1 lines)
Lines 465-471 Link Here
465
        String[] details = cell.split( "," );
465
        String[] details = cell.split( "," );
466
        String itemId = details[ 0 ];
466
        String itemId = details[ 0 ];
467
        int columnIndex = NumberFormatUtil.parseInt( details[ 1 ] );
467
        int columnIndex = NumberFormatUtil.parseInt( details[ 1 ] );
468
        TableItem item = getItemById( table, itemId );
468
        TableItem item = ( TableItem )WidgetUtil.find( table, itemId );
469
        // Bug 321119: Sometimes the client can request tooltips for already
469
        // Bug 321119: Sometimes the client can request tooltips for already
470
        //             disposed cells.
470
        //             disposed cells.
471
        if(    item != null
471
        if(    item != null
Lines 490-507 Link Here
490
    }
490
    }
491
  }
491
  }
492
492
493
  private static TableItem getItemById( final Table table, final String itemId )
494
  {
495
    TableItem result = null;
496
    TableItem[] items = table.getItems();
497
    for( int i = 0; i < items.length && result == null; i++ ) {
498
      if( WidgetUtil.getId( items[ i ] ).equals( itemId ) ) {
499
        result = items[ i ];
500
      }
501
    }
502
    return result;
503
  }
504
505
  //////////////////
493
  //////////////////
506
  // Helping methods
494
  // Helping methods
507
495

Return to bug 360152