if ( presentation == PluginConstants.PREFS_SCHEMA_VIEW_SCHEMA_PRESENTATION_FLAT )
{
if ( root.getChildren().isEmpty() )
{
elementsToWrappersMap = new MultiValueMap();
SchemaHandler schemaHandler = Activator.getDefault().getSchemaHandler();
if ( schemaHandler != null )
{
List<Schema> schemas = schemaHandler.getSchemas();
for ( Schema schema : schemas )
{
addSchemaFlatPresentation( schema );
}
}
}
children = root.getChildren();
Collections.sort( children, schemaSorter );
}
else if ( presentation == PluginConstants.PREFS_SCHEMA_VIEW_SCHEMA_PRESENTATION_HIERARCHICAL )
{
if ( root.getChildren().isEmpty() )
{
elementsToWrappersMap = new MultiValueMap();
hierarchyManager = new HierarchyManager();
if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )
{