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

Examples of org.apache.directory.ldapstudio.browser.core.jobs.InitializeChildrenJob


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

            }
        }
    }
View Full Code Here


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

        {
            final IRootDSE rootDSE = ( IRootDSE ) parent;

            if ( !rootDSE.isChildrenInitialized() && rootDSE.isDirectoryEntry() )
            {
                new InitializeChildrenJob( 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 InitializeChildrenJob( new IEntry[]
                    { parentEntry } ).execute();
                return new String[]
                    { "Fetching Entries..." };
            }
View Full Code Here


    private void reloadEntry()
    {
        IEntry entry = EntryPropertyPage.getEntry( getElement() );
        InitializeChildrenJob job1 = new InitializeChildrenJob( new IEntry[]
            { entry } );
        InitializeAttributesJob job2 = new InitializeAttributesJob( new IEntry[]
            { entry }, true );
        RunnableContextJobAdapter.execute( job1 );
        RunnableContextJobAdapter.execute( job2 );
View Full Code Here

            BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES );

        if ( entries.length > 0 )
        {
            new InitializeAttributesJob( entries, soa ).execute();
            new InitializeChildrenJob( entries ).execute();
        }
        if ( searches.length > 0 )
        {
            new SearchJob( searches ).execute();
        }
View Full Code Here


    private void reloadEntry()
    {
        IEntry entry = EntryPropertyPage.getEntry( getElement() );
        InitializeChildrenJob job1 = new InitializeChildrenJob( new IEntry[]
            { entry } );
        InitializeAttributesJob job2 = new InitializeAttributesJob( new IEntry[]
            { entry }, true );
        RunnableContextJobAdapter.execute( job1 );
        RunnableContextJobAdapter.execute( job2 );
View Full Code Here

        {
            final IEntry parentEntry = ( IEntry ) parent;

            if ( !parentEntry.isChildrenInitialized() && parentEntry.isDirectoryEntry() )
            {
                new InitializeChildrenJob( new IEntry[]
                    { parentEntry } ).execute();
                return new String[]
                    { "Fetching Entries..." };
            }
View Full Code Here

        {
            final IEntry parentEntry = ( IEntry ) parent;

            if ( !parentEntry.isChildrenInitialized() && parentEntry.isDirectoryEntry() )
            {
                new InitializeChildrenJob( new IEntry[]
                    { parentEntry } ).execute();
                return new String[]
                    { "Fetching Entries..." };
            }
View Full Code Here

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

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

            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldapstudio.browser.core.jobs.InitializeChildrenJob

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.