* @return
* the corresponding AttributeTypeWrapper in the Tree
*/
private AttributeTypeWrapper findAttributeTypeWrapperInTree( AttributeTypeImpl at )
{
SchemaWrapper schemaWrapper = findSchemaWrapperInTree( at.getSchema() );
if ( schemaWrapper == null )
{
return null;
}
// Finding the correct node
int group = Activator.getDefault().getPreferenceStore().getInt( PluginConstants.PREFS_SCHEMA_VIEW_GROUPING );
List<TreeNode> children = schemaWrapper.getChildren();
if ( group == PluginConstants.PREFS_SCHEMA_VIEW_GROUPING_FOLDERS )
{
for ( TreeNode child : children )
{
Folder folder = ( Folder ) child;