// alert history is always available
updateSubTab(this.alertsTab, this.alertHistory, true, true, new ViewFactory() {
@Override
public Canvas createView() {
// hide the "new definition" button for mixed groups
GroupAlertHistoryView canvas = GroupAlertHistoryView.get(groupComposite);
canvas.setShowNewDefinitionButton(groupCategory == GroupCategory.COMPATIBLE);
return viewWithoutHeader(canvas);
}
});
// but alert definitions can only be created on compatible groups
boolean visible = (groupCategory == GroupCategory.COMPATIBLE);