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

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


            input = new AttributeTypeFormEditorInput( ( ( AttributeTypeWrapper ) objectSelection ).getMyAttributeType() );
            editorId = AttributeTypeFormEditor.ID;
        }
        else if ( objectSelection instanceof ObjectClassWrapper )
        {
            input = new ObjectClassFormEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
            editorId = ObjectClassFormEditor.ID;
        }
        else if ( ( objectSelection instanceof IntermediateNode ) || ( objectSelection instanceof SchemaWrapper ) )
        {
            // Here we don't open an editor, we just expand the node.
View Full Code Here


            input = new AttributeTypeFormEditorInput( ( ( AttributeTypeWrapper ) objectSelection ).getMyAttributeType() );
            editorId = AttributeTypeFormEditor.ID;
        }
        else if ( objectSelection instanceof ObjectClassWrapper )
        {
            input = new ObjectClassFormEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
            editorId = ObjectClassFormEditor.ID;
        }
        else if ( objectSelection instanceof IntermediateNode )
        {
            // Here we don't open an editor, we just expand the node.
View Full Code Here

                        {
                            try
                            {
                                if ( reference.getEditorInput() instanceof ObjectClassFormEditorInput )
                                {
                                    ObjectClassFormEditorInput input = ( ObjectClassFormEditorInput ) reference
                                        .getEditorInput();
                                    if ( input.getObjectClass().equals( objectClass ) )
                                    {
                                        page.closeEditor( reference.getEditor( false ), false );
                                    }
                                }
                            }
View Full Code Here

        objectClassLiteral.setSuperiors( new String[]{ "top" } ); //$NON-NLS-1$
        ObjectClass objectClass = new ObjectClass( objectClassLiteral, schema );
        schema.addObjectClass( objectClass );

        // Opening the associated editor
        ObjectClassFormEditorInput input = new ObjectClassFormEditorInput( objectClass );
        String editorId = ObjectClassFormEditor.ID;
        try
        {
            PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor( input, editorId );
        }
View Full Code Here

                    input = new AttributeTypeFormEditorInput( ( AttributeType ) item );
                    editorId = AttributeTypeFormEditor.ID;
                }
                else if ( item instanceof ObjectClass )
                {
                    input = new ObjectClassFormEditorInput( ( ObjectClass ) item );
                    editorId = ObjectClassFormEditor.ID;
                }

                // Let's open the editor
                if ( input != null )
View Full Code Here

TOP

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

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.