Package org.apache.directory.ldapstudio.schemas.view.editors

Examples of org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditorInput


        String editorId = null;

        // Selecting the right editor and input
        if ( objectSelection instanceof AttributeTypeWrapper )
        {
            input = new AttributeTypeFormEditorInput( ( ( AttributeTypeWrapper ) objectSelection ).getMyAttributeType() );
            editorId = AttributeTypeFormEditor.ID;
        }
        else if ( objectSelection instanceof ObjectClassWrapper )
        {
            input = new ObjectClassFormEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
View Full Code Here


        String editorId = null;

        // Selecting the right editor and input
        if ( objectSelection instanceof AttributeTypeWrapper )
        {
            input = new AttributeTypeFormEditorInput( ( ( AttributeTypeWrapper ) objectSelection ).getMyAttributeType() );
            editorId = AttributeTypeFormEditor.ID;
        }
        else if ( objectSelection instanceof ObjectClassWrapper )
        {
            input = new ObjectClassFormEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
View Full Code Here

                // Here is the double clicked item
                Object item = sourceTable.getSelection()[0].getData();
                if ( item instanceof AttributeType )
                {
                    input = new AttributeTypeFormEditorInput( ( AttributeType ) item );
                    editorId = AttributeTypeFormEditor.ID;
                }
                else if ( item instanceof ObjectClass )
                {
                    input = new ObjectClassFormEditorInput( ( ObjectClass ) item );
View Full Code Here

        attributeTypeLiteral.setNames( new String[] { this.page.getNameField() } );
        AttributeType attributeType = new AttributeType( attributeTypeLiteral, schema );
        schema.addAttributeType( attributeType );
       
        // Opening the associated editor
        AttributeTypeFormEditorInput input = new AttributeTypeFormEditorInput( attributeType );
        String editorId = AttributeTypeFormEditor.ID;
        try
        {
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor( input, editorId );
        }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.schemas.view.editors.AttributeTypeFormEditorInput

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.