Package org.apache.directory.ldapstudio.browser.ui.wizards

Examples of org.apache.directory.ldapstudio.browser.ui.wizards.AttributeWizard$DummyWizardPage


     *
     * @param values the values
     */
    private void renameValues( final IValue[] values )
    {
        AttributeWizard wizard = new AttributeWizard( "Edit Attribute Description", true, false, values[0]
            .getAttribute().getDescription(), values[0].getAttribute().getEntry() );
        WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
        dialog.setBlockOnOpen( true );
        dialog.create();
        if ( dialog.open() == Dialog.OK )
        {
            String newAttributeName = wizard.getAttributeDescription();
            if ( newAttributeName != null && !"".equals( newAttributeName )
                && !newAttributeName.equals( values[0].getAttribute().getDescription() ) )
            {
                new RenameValuesJob( values[0].getAttribute().getEntry(), values, newAttributeName ).execute();
            }
View Full Code Here


                else if ( containers[0] instanceof LdifChangeModifyRecord )
                {
                    dummyEntry = new DummyEntry( new DN(), dummyConnection );
                }

                AttributeWizard wizard = new AttributeWizard( "Edit Attribute Description", true, false,
                    attributeDescription, dummyEntry );
                WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
                dialog.setBlockOnOpen( true );
                dialog.create();
                if ( dialog.open() == Dialog.OK )
                {
                    String newAttributeDescription = wizard.getAttributeDescription();

                    if ( newAttributeDescription != null )
                    {
                        IDocument document = editor.getDocumentProvider().getDocument( editor.getEditorInput() );
View Full Code Here

    }


    private void renameValues( final IValue[] values )
    {
        AttributeWizard wizard = new AttributeWizard( "Edit Attribute Description", true, false, values[0]
            .getAttribute().getDescription(), values[0].getAttribute().getEntry() );
        WizardDialog dialog = new WizardDialog( Display.getDefault().getActiveShell(), wizard );
        dialog.setBlockOnOpen( true );
        dialog.create();
        if ( dialog.open() == Dialog.OK )
        {
            String newAttributeName = wizard.getAttributeDescription();
            if ( newAttributeName != null && !"".equals( newAttributeName )
                && !newAttributeName.equals( values[0].getAttribute().getDescription() ) )
            {
                new RenameValuesJob( this.selectedEntry, values, newAttributeName ).execute();
            }
View Full Code Here

            entry = getSelectedValues()[0].getAttribute().getEntry();
        }

        if ( entry != null )
        {
            AttributeWizard wizard = new AttributeWizard( "New Attribute", true, true, null, entry );
            WizardDialog dialog = new WizardDialog( getShell(), wizard );
            dialog.setBlockOnOpen( true );
            dialog.create();
            if ( dialog.open() == WizardDialog.OK )
            {
                String newAttributeDescription = wizard.getAttributeDescription();
                if ( newAttributeDescription != null && !"".equals( newAttributeDescription ) )
                {
                    try
                    {
                        IAttribute att = entry.getAttribute( newAttributeDescription );
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.ui.wizards.AttributeWizard$DummyWizardPage

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.