Examples of DummyConnection


Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

    }


    protected IConnection getConnection()
    {
        return editor.getConnection() != null ? editor.getConnection() : new DummyConnection( Schema.DEFAULT_SCHEMA );
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

    {
        super( parentShell );
        setShellStyle( getShellStyle() | SWT.RESIZE );
        this.ldifRecord = ldifRecord;

        this.connection = new DummyConnection( ( connection != null && connection.getSchema() != null ) ? connection
            .getSchema() : Schema.DEFAULT_SCHEMA );
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

                    oldValue = oldLine.getValueAsString();
                }

                Schema schema = editor.getConnection() != null ? editor.getConnection().getSchema()
                    : Schema.DEFAULT_SCHEMA;
                IConnection dummyConnection = new DummyConnection( schema );

                IEntry dummyEntry = null;
                if ( containers[0] instanceof LdifContentRecord )
                {
                    dummyEntry = ModelConverter.ldifContentRecordToEntry( ( LdifContentRecord ) containers[0],
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

                    oldValue = oldLine.getValueAsString();
                }

                Schema schema = editor.getConnection() != null ? editor.getConnection().getSchema()
                    : Schema.DEFAULT_SCHEMA;
                IConnection dummyConnection = new DummyConnection( schema );

                IEntry dummyEntry = null;
                if ( containers[0] instanceof LdifContentRecord )
                {
                    dummyEntry = ModelConverter.ldifContentRecordToEntry( ( LdifContentRecord ) containers[0],
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

    }


    protected IConnection getConnection()
    {
        return editor.getConnection() != null ? editor.getConnection() : new DummyConnection( Schema.DEFAULT_SCHEMA );
    }
View Full Code Here

Examples of org.apache.directory.ldapstudio.browser.core.internal.model.DummyConnection

    {
        super( parentShell );
        setShellStyle( getShellStyle() | SWT.RESIZE );
        this.ldifRecord = ldifRecord;

        this.connection = new DummyConnection( ( connection != null && connection.getSchema() != null ) ? connection
            .getSchema() : Schema.DEFAULT_SCHEMA );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.DummyConnection

            try
            {
                EventRegistry.suspendEventFireingInCurrentThread();

                LdifContentRecord record = ModelConverter.entryToLdifContentRecord( templateEntries[0] );
                DummyEntry prototypeEntry = ModelConverter.ldifContentRecordToEntry( record, new DummyConnection( connection.getSchema() ) );
                IAttribute[] attributes = prototypeEntry.getAttributes();
                for ( int i = 0; i < attributes.length; i++ )
                {
                    if ( !SchemaUtils.isModifyable( attributes[i].getAttributeTypeDescription() ) )
                    {
                        prototypeEntry.deleteAttribute( attributes[i] );
                    }
                }
                wizard.setPrototypeEntry( prototypeEntry );
            }
            catch ( Exception e )
            {
                e.printStackTrace();
            }
            finally
            {
                EventRegistry.resumeEventFireingInCurrentThread();
            }
        }
        else
        {
            wizard.setPrototypeEntry( new DummyEntry( new DN(), new DummyConnection( wizard.getSelectedConnection().getSchema() ) ) );
        }

        return super.getNextPage();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.DummyConnection

        }

        if ( selectedConnection != null )
        {
//            selectedConnection.suspend();
            DummyConnection prototypeConnection = new DummyConnection( selectedConnection.getSchema() );
            prototypeEntry = new DummyEntry( new DN(), prototypeConnection );
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.DummyConnection

    {
        super( parentShell );
        setShellStyle( getShellStyle() | SWT.RESIZE );
        this.ldifRecord = ldifRecord;

        this.connection = new DummyConnection( ( connection != null && connection.getSchema() != null ) ? connection
            .getSchema() : Schema.DEFAULT_SCHEMA );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.internal.model.DummyConnection

                    oldValue = oldLine.getValueAsString();
                }

                Schema schema = editor.getConnection() != null ? editor.getConnection().getSchema()
                    : Schema.DEFAULT_SCHEMA;
                IBrowserConnection dummyConnection = new DummyConnection( schema );

                IEntry dummyEntry = null;
                if ( containers[0] instanceof LdifContentRecord )
                {
                    dummyEntry = ModelConverter.ldifContentRecordToEntry( ( LdifContentRecord ) containers[0],
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.