Package org.apache.directory.ldapstudio.browser.core.events

Examples of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent



    public void deleteAttribute( IAttribute attributeToDelete ) throws ModelModificationException
    {
        attributeMap.remove( attributeToDelete.getDescription().toLowerCase() );
        EventRegistry.fireEntryUpdated( new AttributeDeletedEvent( attributeToDelete.getEntry().getConnection(), this,
            attributeToDelete ), this );
    }
View Full Code Here


            ai.attributeMap.remove( oidString.toLowerCase() );
            if ( ai.attributeMap.isEmpty() )
            {
                this.getJNDIConnection().setAttributeInfo( this, null );
            }
            this.entryModified( new AttributeDeletedEvent( this.getJNDIConnection(), this, attribute ) );
        }
        else
        {
            throw new ModelModificationException( BrowserCoreMessages.model__attribute_does_not_exist );
        }
View Full Code Here

        {
            this.event = new ValueDeletedEvent( entry.getConnection(), entry, values[0].getAttribute(), values[0] );
        }
        else if ( attributes.length > 0 )
        {
            this.event = new AttributeDeletedEvent( entry.getConnection(), entry, attributes[0] );
        }
    }
View Full Code Here

                    .getAddedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributeDeletedEvent )
            {
                AttributeDeletedEvent e = ( AttributeDeletedEvent ) event;
                AttributeDeletedEvent delegateEvent = new AttributeDeletedEvent( e.getConnection(), this, e
                    .getDeletedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributesInitializedEvent )
            {
View Full Code Here

                    .getAddedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributeDeletedEvent )
            {
                AttributeDeletedEvent e = ( AttributeDeletedEvent ) event;
                AttributeDeletedEvent delegateEvent = new AttributeDeletedEvent( e.getOriginalConnection(), this, e
                    .getDeletedAttribute() );
                EventRegistry.fireEntryUpdated( delegateEvent, this );
            }
            else if ( event instanceof AttributesInitializedEvent )
            {
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.events.AttributeDeletedEvent

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.