private Item equipItemListWithItem() throws Exception { Item result = equipWithItems(timeline, new Item("id", 20L) {}); showShell(shell); SwtItemUi<Item> itemUi = stubItemUi(newChildComposite(itemUiList.getUiRoot())); map(itemUiMap, result, itemUi); return result; }
private void triggerScrollbarSelectionChange(int newValue) { ScrollBar verticalBar = ((ScrolledComposite) itemUiList.getUiRoot()).getVerticalBar(); verticalBar.setSelection(newValue); SwtEventHelper.trigger(SWT.Selection).withDetail(newValue).on(verticalBar); }