189190191192193194195196197198199
for (Tool tool : data.getContents()) { ++pos; if (tool == null) { newItems.add(new ToolbarSeparator(4)); } else { ToolbarItem i = findItem(oldItems, tool); if (i == null) { newItems.add(new ToolItem(tool)); } else { newItems.add(i); }
207208209210211212213214215216217