Examples of ObjectClassEditorInput


Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

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

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

Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

            input = new AttributeTypeEditorInput( ( AttributeType ) item );
            editorId = AttributeTypeEditor.ID;
        }
        else if ( item instanceof ObjectClass )
        {
            input = new ObjectClassEditorInput( ( ObjectClass ) item );
            editorId = ObjectClassEditor.ID;
        }

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

Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

                        .getMyAttributeType() );
                    editorId = AttributeTypeEditor.ID;
                }
                else if ( objectSelection instanceof ObjectClassWrapper )
                {
                    input = new ObjectClassEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
                    editorId = ObjectClassEditor.ID;
                }

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

Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

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

Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

                        .getMyAttributeType() );
                    editorId = AttributeTypeEditor.ID;
                }
                else if ( objectSelection instanceof ObjectClassWrapper )
                {
                    input = new ObjectClassEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
                    editorId = ObjectClassEditor.ID;
                }
                else if ( ( objectSelection instanceof IntermediateNode )
                    || ( objectSelection instanceof SchemaWrapper ) )
                {
View Full Code Here

Examples of org.apache.directory.ldapstudio.schemas.view.editors.objectClass.ObjectClassEditorInput

                        .getMyAttributeType() );
                    editorId = AttributeTypeEditor.ID;
                }
                else if ( objectSelection instanceof ObjectClassWrapper )
                {
                    input = new ObjectClassEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getMyObjectClass() );
                    editorId = ObjectClassEditor.ID;
                }
                else if ( ( objectSelection instanceof IntermediateNode )
                    || ( objectSelection instanceof SchemaWrapper ) )
                {
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.editors.objectclass.ObjectClassEditorInput

            else if ( selectedItem instanceof ObjectClassWrapper )
            {
                try
                {
                    PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(
                        new ObjectClassEditorInput( ( ( ObjectClassWrapper ) selectedItem ).getObjectClass() ),
                        ObjectClassEditor.ID );
                }
                catch ( PartInitException e )
                {
                    PluginUtils.logError( Messages.getString( "OpenElementAction.ErrorOpeningEditor" ), e ); //$NON-NLS-1$
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.editors.objectclass.ObjectClassEditorInput

                        input = new AttributeTypeEditorInput( ( AttributeTypeImpl ) object );
                        editorId = AttributeTypeEditor.ID;
                    }
                    else if ( object instanceof ObjectClassImpl )
                    {
                        input = new ObjectClassEditorInput( ( ObjectClassImpl ) object );
                        editorId = ObjectClassEditor.ID;
                    }
                }
                else if ( objectSelection instanceof SchemaWarningWrapper )
                {
                    SchemaObject object = ( ( SchemaWarningWrapper ) objectSelection ).getSchemaWarning().getSource();

                    if ( object instanceof AttributeTypeImpl )
                    {
                        input = new AttributeTypeEditorInput( ( AttributeTypeImpl ) object );
                        editorId = AttributeTypeEditor.ID;
                    }
                    else if ( object instanceof ObjectClassImpl )
                    {
                        input = new ObjectClassEditorInput( ( ObjectClassImpl ) object );
                        editorId = ObjectClassEditor.ID;
                    }
                }
                else if ( ( objectSelection instanceof Folder ) )
                {
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.editors.objectclass.ObjectClassEditorInput

                        .getAttributeType() );
                    editorId = AttributeTypeEditor.ID;
                }
                else if ( objectSelection instanceof ObjectClassWrapper )
                {
                    input = new ObjectClassEditorInput( ( ( ObjectClassWrapper ) objectSelection ).getObjectClass() );
                    editorId = ObjectClassEditor.ID;
                }
                else if ( ( objectSelection instanceof Folder ) || ( objectSelection instanceof SchemaWrapper ) )
                {
                    // Here we don't open an editor, we just expand the node.
View Full Code Here

Examples of org.apache.directory.studio.schemaeditor.view.editors.objectclass.ObjectClassEditorInput

                    input = new AttributeTypeEditorInput( ( AttributeTypeImpl ) item );
                    editorId = AttributeTypeEditor.ID;
                }
                else if ( item instanceof ObjectClassImpl )
                {
                    input = new ObjectClassEditorInput( ( ObjectClassImpl ) item );
                    editorId = ObjectClassEditor.ID;
                }

                // Let's open the editor
                if ( input != null )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.