// a category, only always the entire thing.
if (contextManager.getItems().length >= 15 && category.getActions().size() > 5) {
break;
}
MenuManager menu = category.createContextMenu();
if ((i != 0 && menu.getItems().length != 0)
&& (secondaryCategories.size() != 0 || getOperationMenuFactory()
.getActions().size() != 0)) {