// Optional attributes action toggle.
final IAction showRequiredOnly = new ShowOptionalAction();
toolBarManager.add(showRequiredOnly);
// Grouping method action.
toolBarManager.add(new GroupingMethodAction(
PreferenceConstants.GROUPING_INPUT_VIEW));
// Add save attributes action.
toolBarManager.add(new SaveDocumentSourceAttributesAction(this));
}