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

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


    protected void runNotification()
    {
        for ( int i = 0; i < connections.length; i++ )
        {
            EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( connections[i],
                ConnectionUpdateEvent.EventDetail.SCHEMA_LOADED ), this );
        }
    }
View Full Code Here


    {
        for ( int i = 0; i < connections.length; i++ )
        {
            if ( connections[i].isOpened() )
            {
                EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( connections[i],
                    ConnectionUpdateEvent.EventDetail.CONNECTION_OPENED ), this );
            }
            else
            {
                EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( connections[i],
                    ConnectionUpdateEvent.EventDetail.CONNECTION_CLOSED ), this );
            }
        }
    }
View Full Code Here

                monitor.reportError( BrowserCoreMessages.model__error_loading_schema, e );
                e.printStackTrace();
                return;
            }

            EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
                ConnectionUpdateEvent.EventDetail.CONNECTION_OPENED ), this );
        }
    }
View Full Code Here

            this.entryToChildrenFilterMap.clear();

            modifyHandler.connectionClosed();
            searchHandler.connectionClosed();

            EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
                ConnectionUpdateEvent.EventDetail.CONNECTION_CLOSED ), this );
            System.gc();
        }
    }
View Full Code Here

                if ( le.hasNext( monitor ) )
                {
                    LdifContentRecord schemaRecord = ( LdifContentRecord ) le.next( monitor );
                    this.schema = new Schema();
                    this.schema.loadFromRecord( schemaRecord );
                    EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
                        ConnectionUpdateEvent.EventDetail.SCHEMA_LOADED ), this );
                }
                else
                {
                    monitor.reportError( BrowserCoreMessages.model__no_schema_information );
View Full Code Here


    public void setFetchBaseDNs( boolean fetchBaseDNs )
    {
        this.connectionParameter.setFetchBaseDNs( fetchBaseDNs );
        EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
            ConnectionUpdateEvent.EventDetail.CONNECTION_PARAMETER_UPDATED ), this );
    }
View Full Code Here


    public void setBaseDN( DN baseDN )
    {
        this.connectionParameter.setBaseDN( baseDN );
        EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
            ConnectionUpdateEvent.EventDetail.CONNECTION_PARAMETER_UPDATED ), this );
    }
View Full Code Here


    public void setCountLimit( int countLimit )
    {
        this.connectionParameter.setCountLimit( countLimit );
        EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
            ConnectionUpdateEvent.EventDetail.CONNECTION_PARAMETER_UPDATED ), this );
    }
View Full Code Here


    public void setHost( String host )
    {
        this.connectionParameter.setHost( host );
        EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
            ConnectionUpdateEvent.EventDetail.CONNECTION_PARAMETER_UPDATED ), this );
    }
View Full Code Here


    public void setPort( int port )
    {
        this.connectionParameter.setPort( port );
        EventRegistry.fireConnectionUpdated( new ConnectionUpdateEvent( this,
            ConnectionUpdateEvent.EventDetail.CONNECTION_PARAMETER_UPDATED ), this );
    }
View Full Code Here

TOP

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

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.