Package org.apache.directory.ldapstudio.schemas.view.viewers.wrappers

Examples of org.apache.directory.ldapstudio.schemas.view.viewers.wrappers.AttributeTypeWrapper


        // Only editors for attribute types and object class are accepted
        if ( editorID.equals( AttributeTypeFormEditor.ID ) )
        {
            AttributeType at = SchemaPool.getInstance().getAttributeType( editorName );
            wrapper = new AttributeTypeWrapper( at, null );
            structuredSelection = new StructuredSelection( wrapper );

            schemasView.getViewer().setSelection( structuredSelection, true );
        }
        else if ( editorID.equals( ObjectClassFormEditor.ID ) )
View Full Code Here


            expandFromTopToBottom( objectClassWrapper.getParent() );
            schemasView.getViewer().setExpandedState( objectClassWrapper, true );
        }
        else if ( element instanceof AttributeTypeWrapper )
        {
            AttributeTypeWrapper attributeTypeWrapper = ( AttributeTypeWrapper ) element;
            expandFromTopToBottom( attributeTypeWrapper.getParent() );
            schemasView.getViewer().setExpandedState( attributeTypeWrapper, true );
        }
        else if ( element instanceof IntermediateNode )
        {
            IntermediateNode intermediateNode = ( IntermediateNode ) element;
View Full Code Here

        // Only editors for attribute types and object class are accepted
        if ( editorID.equals( AttributeTypeFormEditor.ID ) )
        {
            AttributeType at = SchemaPool.getInstance().getAttributeType( editorName );
            wrapper = new AttributeTypeWrapper( at, null );
            structuredSelection = new StructuredSelection( wrapper );

            hierarchyView.getViewer().setSelection( structuredSelection, true );
        }
        else if ( editorID.equals( ObjectClassFormEditor.ID ) )
View Full Code Here

            expandFromTopToBottom( objectClassWrapper.getParent() );
            hierarchyView.getViewer().setExpandedState( objectClassWrapper, true );
        }
        else if ( element instanceof AttributeTypeWrapper )
        {
            AttributeTypeWrapper attributeTypeWrapper = ( AttributeTypeWrapper ) element;
            expandFromTopToBottom( attributeTypeWrapper.getParent() );
            hierarchyView.getViewer().setExpandedState( attributeTypeWrapper, true );
        }
        else if ( element instanceof IntermediateNode )
        {
            IntermediateNode intermediateNode = ( IntermediateNode ) element;
View Full Code Here

                //A CHANGER, ON FAIT SAUTER LES ATTR QUI NE SONT PAS DEFINIS
                //DANS LE SCHEMA COURANT (ATTRS PAR DEFAUT)
                if ( attr == null )
                    continue;
                //we use an attribute-type wrapper
                may.addElement( new AttributeTypeWrapper( attr, may ) );
            }

            //complete mandatory attributes
            String[] mandAttributes = objectClass.getMust();
            for ( String name : mandAttributes )
            {
                AttributeType attr = attributeTypeTable.get( name );
                //A CHANGER, ON FAIT SAUTER LES ATTR QUI NE SONT PAS DEFINIS
                //DANS LE SCHEMA COURANT (ATTRS PAR DEFAUT)
                if ( attr == null )
                    continue;

                //we use an attribute-type wrapper
                must.addElement( new AttributeTypeWrapper( attr, must ) );
            }

            return new Object[]
                { sub, may, must };
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.view.viewers.wrappers.AttributeTypeWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.