equal
deleted
inserted
replaced
309 * |
309 * |
310 * @param position the item index |
310 * @param position the item index |
311 */ |
311 */ |
312 public void delete(int position) |
312 public void delete(int position) |
313 { |
313 { |
314 // choiceImpl.delete(position); |
314 if (position < 0 || ( position >= size())) |
|
315 { |
|
316 throw new IndexOutOfBoundsException( |
|
317 MsgRepository.CHOICE_EXCEPTION_INVALID_ITEM_INDEX); |
|
318 } |
315 final int index = position; // index of changed element |
319 final int index = position; // index of changed element |
316 ESWTUIThreadRunner.syncExec(new Runnable() |
320 ESWTUIThreadRunner.syncExec(new Runnable() |
317 { |
321 { |
318 public void run() |
322 public void run() |
319 { |
323 { |