~smaioli/azureus/ubuntu-experimental

« back to all changes in this revision

Viewing changes to org/gudy/azureus2/ui/swt/views/MySharesView.java

MergedĀ VuzeĀ 4.2.0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
221
221
           Utils.setMenuItemImage(itemRemove, "delete");
222
222
 
223
223
 
224
 
           Object[] shares = tv.getSelectedDataSources();
 
224
           Object[] shares = tv.getSelectedDataSources().toArray();
225
225
 
226
226
           itemRemove.setEnabled(shares.length > 0);
227
227
 
421
421
  private List
422
422
  getSelectedItems()
423
423
  {
424
 
          Object[] shares = tv.getSelectedDataSources();
 
424
          Object[] shares = tv.getSelectedDataSources().toArray();
425
425
            
426
426
          List  items = new ArrayList();
427
427
          
589
589
  removeSelectedShares()
590
590
  {
591
591
        stopSelectedShares();
592
 
    Object[] shares = tv.getSelectedDataSources();
 
592
    Object[] shares = tv.getSelectedDataSources().toArray();
593
593
    for (int i = 0; i < shares.length; i++) {
594
594
        try{
595
595
                ((ShareResource)shares[i]).delete();