Package org.apache.directory.studio.ldapbrowser.core.events

Examples of org.apache.directory.studio.ldapbrowser.core.events.EntryMovedEvent


            viewer.refresh( ere.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( ere.getNewEntry() ), true );
        }
        else if ( event instanceof EntryMovedEvent )
        {
            EntryMovedEvent eme = ( EntryMovedEvent ) event;
            viewer.refresh( eme.getOldEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( eme.getNewEntry() ), true );
        }
        else if ( event instanceof EntryDeletedEvent )
        {
            EntryDeletedEvent ede = ( EntryDeletedEvent ) event;
            if ( ede.getModifiedEntry().getParententry() != null )
View Full Code Here


            // notify fore each moved entry
            for ( int i = 0; i < newEntries.length; i++ )
            {
                if ( oldEntries[i] != null && newEntries[i] != null )
                {
                    EventRegistry.fireEntryUpdated( new EntryMovedEvent( oldEntries[i], newEntries[i] ), this );
                }
            }
        }
        else
        {
View Full Code Here

            viewer.refresh( ere.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( ere.getNewEntry() ), true );
        }
        else if ( event instanceof EntryMovedEvent )
        {
            EntryMovedEvent eme = ( EntryMovedEvent ) event;
            viewer.refresh( eme.getOldEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( eme.getNewEntry() ), true );
        }
        else if ( event instanceof EntryDeletedEvent )
        {
            EntryDeletedEvent ede = ( EntryDeletedEvent ) event;
            if ( ede.getModifiedEntry().getParententry() != null )
View Full Code Here

    {
        for ( int i = 0; i < newEntries.length; i++ )
        {
            if ( oldEntries[i] != null && newEntries[i] != null )
            {
                EventRegistry.fireEntryUpdated( new EntryMovedEvent( oldEntries[i], newEntries[i] ), this );
            }
        }
        for ( ISearch search : searchesToUpdateSet )
        {
            EventRegistry.fireSearchUpdated( new SearchUpdateEvent( search,
View Full Code Here

    {
        for ( int i = 0; i < newEntries.length; i++ )
        {
            if ( oldEntries[i] != null && newEntries[i] != null )
            {
                EventRegistry.fireEntryUpdated( new EntryMovedEvent( oldEntries[i], newEntries[i] ), this );
            }
        }
        for ( ISearch search : searchesToUpdateSet )
        {
            EventRegistry.fireSearchUpdated( new SearchUpdateEvent( search,
View Full Code Here

    {
        for ( int i = 0; i < newEntries.length; i++ )
        {
            if ( oldEntries[i] != null && newEntries[i] != null )
            {
                EventRegistry.fireEntryUpdated( new EntryMovedEvent( oldEntries[i], newEntries[i] ), this );
            }
        }
        for ( Iterator it = searchesToUpdateSet.iterator(); it.hasNext(); )
        {
            ISearch search = ( ISearch ) it.next();
View Full Code Here

            viewer.refresh( ere.getNewEntry(), true );
            viewer.setSelection( new StructuredSelection( ere.getNewEntry() ), true );
        }
        else if ( event instanceof EntryMovedEvent )
        {
            EntryMovedEvent eme = ( EntryMovedEvent ) event;
            viewer.refresh( eme.getOldEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry(), true );
            viewer.setSelection( new StructuredSelection( eme.getNewEntry() ), true );
        }
        else if ( event instanceof BulkModificationEvent )
        {
            viewer.refresh();
        }
View Full Code Here

            viewer.refresh( ere.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( ere.getNewEntry() ), true );
        }
        else if ( event instanceof EntryMovedEvent )
        {
            EntryMovedEvent eme = ( EntryMovedEvent ) event;
            viewer.refresh( eme.getOldEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( eme.getNewEntry() ), true );
        }
        else if ( event instanceof EntryDeletedEvent )
        {
            EntryDeletedEvent ede = ( EntryDeletedEvent ) event;
            if ( ede.getModifiedEntry().getParententry() != null )
View Full Code Here

            viewer.refresh( ere.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( ere.getNewEntry() ), true );
        }
        else if ( event instanceof EntryMovedEvent )
        {
            EntryMovedEvent eme = ( EntryMovedEvent ) event;
            viewer.refresh( eme.getOldEntry().getParententry(), true );
            viewer.refresh( eme.getNewEntry().getParententry(), true );
            viewer.setSelection( new StructuredSelection( eme.getNewEntry() ), true );
        }
        else if ( event instanceof EntryDeletedEvent )
        {
            EntryDeletedEvent ede = ( EntryDeletedEvent ) event;
            if ( ede.getModifiedEntry().getParententry() != null )
View Full Code Here

            // notify fore each moved entry
            for ( int i = 0; i < newEntries.length; i++ )
            {
                if ( oldEntries[i] != null && newEntries[i] != null )
                {
                    EventRegistry.fireEntryUpdated( new EntryMovedEvent( oldEntries[i], newEntries[i] ), this );
                }
            }
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.core.events.EntryMovedEvent

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.