Menu addTabMenu = new Menu();
for (String tabName : shortToLongTabNameMap.keySet()) {
CheckItem item = new CheckItem(tabName, enabledTabs.contains(shortToLongTabNameMap.get(tabName)));
addTabMenu.addItem(item);
item.addListener(new CheckItemListenerAdapter() {
@Override
public void onCheckChange(CheckItem item, boolean checked) {
String javaClassName = shortToLongTabNameMap.get(item.getText());
if (checked) {
onTabAdded(javaClassName);