* @return a collection of actions, the returned collection is modifiable.
*/
public List<IContributionItem> build() {
List<IContributionItem> items = Lists.newArrayList();
if (filterAction != null) {
items.add(new ActionContributionItem(filterAction));
}
if (treeAction != null) {
items.add(new ActionContributionItem(treeAction));
}
if (categoryProvider != null) {
items.add(new ActionContributionItem(
new GroupByAction(categoryProvider, groupByActions
.toArray(new IAction[0]))));
}
if (visualProviders != null) {
items.add(new ActionContributionItem(
new ColorByAction(colorByActions.toArray(new IAction[0]))));
}
return items;
}