use of eu.esdihumboldt.hale.ui.common.definition.viewer.OptionalPropertiesFilter in project hale by halestudio.
the class EntitySchemaExplorer method prependToolbarActions.
/**
* @see SchemaExplorer#prependToolbarActions(ToolBarManager)
*/
@Override
protected void prependToolbarActions(ToolBarManager manager) {
// structure
manager.add(new ContentProviderAction("Types as list", SchemasViewPlugin.getImageDescriptor("icons/flat_hierarchy.png"), getTreeViewer(), listProvider, true));
manager.add(new ContentProviderAction("Type hierarchy", SchemasViewPlugin.getImageDescriptor("icons/inheritance_hierarchy.png"), getTreeViewer(), hierarchyProvider, false));
manager.add(new Separator());
// type filters
ViewerFilter typeUnpopulated = new UnpopulatedTypesFilter();
manager.add(new FilterAction("Hide unpopulated types", "Show unpopulated types", SchemasViewPlugin.getImageDescriptor("icons/type_empty.gif"), getTreeViewer(), typeUnpopulated, true, true));
manager.add(new Separator());
// properties filters
ViewerFilter unpopulated = new UnpopulatedPropertiesFilter();
manager.add(new FilterAction("Hide unpopulated properties", "Show unpopulated properties", SchemasViewPlugin.getImageDescriptor("icons/empty.gif"), getTreeViewer(), unpopulated, true, true));
ViewerFilter inherited = new InheritedPropertiesFilter();
manager.add(new FilterAction("Hide inherited properties", "Show inherited properties", SchemasViewPlugin.getImageDescriptor("icons/inherited.gif"), getTreeViewer(), inherited, true, true));
ViewerFilter optional = new OptionalPropertiesFilter();
manager.add(new FilterAction("Hide optional properties", "Show optional properties", SchemasViewPlugin.getImageDescriptor("icons/mandatory.gif"), getTreeViewer(), optional, true, true));
manager.add(new Separator());
}
Aggregations