Package org.apache.directory.ldapstudio.schemas.model

Examples of org.apache.directory.ldapstudio.schemas.model.SchemaPool


     * @see org.eclipse.jface.wizard.Wizard#performFinish()
     */
    @Override
    public boolean performFinish()
    {
        SchemaPool pool = SchemaPool.getInstance();
        pool.addSchema( this.page.getNameField(), Schema.SchemaType.userSchema );
        return true;
    }
View Full Code Here


     */
    @Override
    public boolean performFinish()
    {
        // Getting the SchemaPool
        SchemaPool pool = SchemaPool.getInstance();

        // Getting the right schema
        Schema schema = pool.getSchema( schemaName );

        // Creating the new attribute type and adding it to the schema
        AttributeTypeLiteral attributeTypeLiteral = new AttributeTypeLiteral( this.page.getOidField() );
        attributeTypeLiteral.setNames( new String[] { this.page.getNameField() } );
        AttributeType attributeType = new AttributeType( attributeTypeLiteral, schema );
View Full Code Here

             */
            public void drop( DropTargetEvent event )
            {
                if ( fileTransfer.isSupportedType( event.currentDataType ) )
                {
                    SchemaPool pool = SchemaPool.getInstance();
                    String[] files = ( String[] ) event.data;
                    for ( String file : files )
                    {
                        try
                        {
                            pool.addSchema( Schema.localPathToURL( file ) );
                        }
                        catch ( SchemaCreationException e )
                        {
                            logger.debug( "error when initializing new schema after drag&drop: " + file ); //$NON-NLS-1$
                        }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.model.SchemaPool

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.