*
* @param schema
*/
public void addSchemaFlatPresentation( Schema schema )
{
SchemaWrapper schemaWrapper = new SchemaWrapper( schema, root );
root.addChild( schemaWrapper );
elementsToWrappersMap.put( schema, schemaWrapper );
int group = store.getInt( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );
if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )
{
Folder atFolder = new Folder( FolderType.ATTRIBUTE_TYPE, schemaWrapper );
schemaWrapper.addChild( atFolder );
for ( AttributeTypeImpl attributeType : schema.getAttributeTypes() )
{
AttributeTypeWrapper atw = new AttributeTypeWrapper( attributeType, atFolder );
atw.getParent().addChild( atw );
elementsToWrappersMap.put( attributeType, atw );
}
Folder ocFolder = new Folder( FolderType.OBJECT_CLASS, schemaWrapper );
schemaWrapper.addChild( ocFolder );
for ( ObjectClassImpl objectClass : schema.getObjectClasses() )
{
ObjectClassWrapper ocw = new ObjectClassWrapper( objectClass, ocFolder );
ocw.getParent().addChild( ocw );