Examples of InitializeChildrenRunnable


Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

     */
    private void reloadEntry()
    {
        IEntry entry = EntryPropertyPage.getEntry( getElement() );
        entry.setInitOperationalAttributes( true );
        InitializeChildrenRunnable runnable1 = new InitializeChildrenRunnable( false, entry );
        InitializeAttributesRunnable runnable2 = new InitializeAttributesRunnable( entry );
        RunnableContextRunner.execute( runnable1, null, true );
        RunnableContextRunner.execute( runnable2, null, true );
        entryUpdated( entry );
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

                    {
                        continuation.resolve();
                    }
                }
            }
            InitializeChildrenRunnable initializeChildrenRunnable = new InitializeChildrenRunnable( true, entries
                .toArray( new IEntry[0] ) );
            new StudioBrowserJob( initializeChildrenRunnable ).execute();
        }
        if ( searches.length > 0 )
        {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

                    {
                        continuation.resolve();
                    }
                }
            }
            InitializeChildrenRunnable initializeChildrenRunnable = new InitializeChildrenRunnable( true, entries
                .toArray( new IEntry[0] ) );
            new StudioBrowserJob( initializeChildrenRunnable ).execute();
        }
        if ( searches.length > 0 )
        {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

                }
                else
                {
                    entry.setChildrenFilter( newFilter.trim() );
                }
                new StudioBrowserJob( new InitializeChildrenRunnable( true, entry ) ).execute();
            }
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

    {
        if ( getSelectedEntries().length == 1 )
        {
            IEntry entry = getSelectedEntries()[0];
            entry.setChildrenFilter( null );
            new StudioBrowserJob( new InitializeChildrenRunnable( true, entry ) ).execute();
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

        boolean init = !isChecked();
        for ( IEntry entry : entries )
        {
            entry.setFetchReferrals( init );
        }
        new StudioBrowserJob( new InitializeChildrenRunnable( true, entries ) ).execute();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

        boolean init = !isChecked();
        for ( IEntry entry : entries )
        {
            entry.setFetchSubentries( init );
        }
        new StudioBrowserJob( new InitializeChildrenRunnable( true, entries ) ).execute();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

        boolean init = !isChecked();
        for ( IEntry entry : entries )
        {
            entry.setFetchAliases( init );
        }
        new StudioBrowserJob( new InitializeChildrenRunnable( true, entries ) ).execute();
    }
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

        {
            final IRootDSE rootDSE = ( IRootDSE ) parent;

            if ( !rootDSE.isChildrenInitialized() )
            {
                new StudioBrowserJob( new InitializeChildrenRunnable( false, rootDSE ) ).execute();
                return new String[]
                    { Messages.getString( "BrowserContentProvider.FetchingEntries" ) }; //$NON-NLS-1$
            }

            // get base entries
            List<IEntry> entryList = new ArrayList<IEntry>();
            entryList.addAll( Arrays.asList( rootDSE.getChildren() ) );

            // remove non-visible entries
            for ( Iterator<IEntry> it = entryList.iterator(); it.hasNext(); )
            {
                Object o = it.next();
                if ( !preferences.isShowDirectoryMetaEntries() && ( o instanceof DirectoryMetadataEntry ) )
                {
                    it.remove();
                }
            }

            return entryList.toArray();
        }
        else if ( parent instanceof IEntry )
        {
            final IEntry parentEntry = ( IEntry ) parent;

            if ( parentEntry instanceof IContinuation )
            {
                IContinuation continuation = ( IContinuation ) parentEntry;
                if ( continuation.getState() == State.UNRESOLVED )
                {
                    continuation.resolve();
                }
                if ( continuation.getState() == State.CANCELED )
                {
                    return new Object[0];
                }
            }

            if ( !parentEntry.isChildrenInitialized() )
            {
                new StudioBrowserJob( new InitializeChildrenRunnable( false, parentEntry ) ).execute();
                return new String[]
                    { Messages.getString( "BrowserContentProvider.FetchingEntries" ) }; //$NON-NLS-1$
            }
            else if ( parentEntry.getChildrenCount() <= preferences.getFoldingSize() || !preferences.isUseFolding() )
            {
View Full Code Here

Examples of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

        {
            final IRootDSE rootDSE = ( IRootDSE ) parent;

            if ( !rootDSE.isChildrenInitialized() && rootDSE.isDirectoryEntry() )
            {
                new StudioBrowserJob( new InitializeChildrenRunnable( new IEntry[]
                    { rootDSE } ) ).execute();
                return new String[]
                    { "Fetching Entries..." };
            }

            // get base entries
            List<IEntry> entryList = new ArrayList<IEntry>();
            entryList.addAll( Arrays.asList( rootDSE.getChildren() ) );

            // remove non-visible entries
            for ( Iterator<IEntry> it = entryList.iterator(); it.hasNext(); )
            {
                Object o = it.next();
                if ( !preferences.isShowDirectoryMetaEntries() && ( o instanceof DirectoryMetadataEntry ) )
                {
                    it.remove();
                }
            }

            return entryList.toArray();
        }
        else if ( parent instanceof IEntry )
            {
                final IEntry parentEntry = ( IEntry ) parent;

            if ( !parentEntry.isChildrenInitialized() && parentEntry.isDirectoryEntry() )
            {
                new StudioBrowserJob( new InitializeChildrenRunnable( new IEntry[]
                    { parentEntry } ) ).execute();
                return new String[]
                    { "Fetching Entries..." };
            }
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.