Examples of InitializeAttributesRunnable


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

    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 );
        entryUpdated( entry );
    }
View Full Code Here

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

        boolean soa = BrowserCommonActivator.getDefault().getPreferenceStore().getBoolean(
            BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES );

        if ( entries.length > 0 )
        {
            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 )
            {
                search.setSearchResults( null );
            }
            new StudioBrowserJob( new SearchRunnable( searches ) ).execute();
        }

        if ( entryInput != null )
        {
            new StudioBrowserJob( new InitializeAttributesRunnable( new IEntry[]
                { entryInput }, soa ) ).execute();
        }
        if ( searchInput != null )
        {
            searchInput.setSearchResults( null );
View Full Code Here

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

            }

            // init attributes
            if ( !templateEntries[0].isAttributesInitialized() )
            {
                InitializeAttributesRunnable initializeAttributesRunnable = new InitializeAttributesRunnable(
                    templateEntries, false );
                RunnableContextRunner.execute( initializeAttributesRunnable, getContainer(), true );
            }

            // clone entry and remove non-modifyable attributes
View Full Code Here

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

            && ( this.mode == MODE_NORMAL || this.mode == MODE_INCLUDE_OPERATIONAL_ATTRIBUTES ) )
        {
            IEntry[] uninitializedEntries = ( IEntry[] ) uninitializedEntryList
                .toArray( new IEntry[uninitializedEntryList.size()] );

            InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( uninitializedEntries, false );
            RunnableContextRunner.execute( runnable, null, true );

            // SyncInitializeEntryJob job = new
            // SyncInitializeEntryJob(uninitializedEntries,
            // InitializeEntryJob.INIT_ATTRIBUTES_MODE, null);
View Full Code Here

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

    private void initAttributes()
    {
        boolean soa = BrowserCommonActivator.getDefault().getPreferenceStore().getBoolean(
            BrowserCommonConstants.PREFERENCE_ENTRYEDITOR_SHOW_OPERATIONAL_ATTRIBUTES );
        InitializeAttributesRunnable iar = new InitializeAttributesRunnable( new IEntry[]
            { selectedEntry }, soa );
        RunnableContextRunner.execute( iar, getContainer(), true );
    }
View Full Code Here

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

            boolean oai = entry.isOperationalAttributesInitialized();
            boolean ai = entry.isAttributesInitialized();
            if ( ( !ai || ( !oai && showOperationalAttributes && entry.isConsistent() ) ) && entry.isDirectoryEntry() )
            {
                InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( new IEntry[]
                    { entry }, showOperationalAttributes );
                StudioBrowserJob job = new StudioBrowserJob( runnable );
                job.execute();
                return new Object[0];
            }
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.