int sortOrder = store.getInt( PluginConstants.PREFS_SCHEMAS_VIEW_SORTING_ORDER );
List<ITreeNode> children = null;
if ( parentElement instanceof SchemasViewRoot )
{
SchemasViewRoot root = ( SchemasViewRoot ) parentElement;
if ( root.getChildren().isEmpty() )
{
Schema[] schemas = schemaPool.getSchemas();
for ( Schema schema : schemas )
{
root.addChild( new SchemaWrapper( schema, root ) );
}
}
children = root.getChildren();
Collections.sort( children, schemaSorter );
}
if ( parentElement instanceof IntermediateNode )
{
IntermediateNode intermediate = ( IntermediateNode ) parentElement;