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

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


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


                }
                else
                {
                    getSelectedEntries()[0].setChildrenFilter( newFilter.trim() );
                }
                new StudioBrowserJob( new InitializeChildrenRunnable( new IEntry[]
                    { getSelectedEntries()[0] } ) ).execute();

            }
        }
    }
View Full Code Here

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

        {
            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

        {
            new StudioBrowserJob( new InitializeAttributesRunnable( entries, soa ) ).execute();
            // avoid duplicate search on Root DSE
            if ( entries.length > 1 || !( entries[0] instanceof IRootDSE ) )
            {
                new StudioBrowserJob( new InitializeChildrenRunnable( entries ) ).execute();
            }
        }
        if ( searches.length > 0 )
        {
            for ( ISearch search : searches )
View Full Code Here

TOP

Related Classes of org.apache.directory.studio.ldapbrowser.core.jobs.InitializeChildrenRunnable

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.