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

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


     */
    public boolean performSearch( final ISearch search )
    {
        if ( search.getBrowserConnection() != null )
        {
            new StudioBrowserJob( new SearchRunnable( new ISearch[]
                { search } ) ).execute();
            return true;
        }
        else
        {
View Full Code Here


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

        if ( entries.length > 0 )
        {
            new StudioBrowserJob( new InitializeAttributesRunnable( entries, soa ) ).execute();
            new StudioBrowserJob( new InitializeChildrenRunnable( entries ) ).execute();
        }
        if ( searches.length > 0 )
        {
            new StudioBrowserJob( new SearchRunnable( searches ) ).execute();
        }

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

                {
                    Rdn newRdn = renameDialog.getRdn();
                    if ( newRdn != null && !newRdn.equals( entry.getRdn() ) )
                    {
                        IEntry originalEntry = entry.getBrowserConnection().getEntryFromCache( entry.getDn() );
                        new StudioBrowserJob( new RenameEntryRunnable( originalEntry, newRdn,
                            new SimulateRenameDialogImpl( parent.getShell() ) ) ).execute();
                    }
                }
            }
        }
View Full Code Here

    public static StudioBrowserJob ensureAttributesInitialized( IEntry entry )
    {
        if ( !entry.isAttributesInitialized() )
        {
            InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( entry );
            StudioBrowserJob job = new StudioBrowserJob( runnable );
            job.execute();
            return job;
        }

        return null;
    }
View Full Code Here

     */
    public void openEntryEditor( EntryEditorExtension extension, IEntry[] entries, ISearchResult[] searchResults,
        IBookmark[] bookmarks )
    {
        OpenEntryEditorRunnable runnable = new OpenEntryEditorRunnable( extension, entries, searchResults, bookmarks );
        StudioBrowserJob job = new StudioBrowserJob( runnable );
        job.setPriority( Job.INTERACTIVE ); // Highest priority (just in case)
        job.execute();
    }
View Full Code Here

     *      an arrays of bookmarks
     */
    public void openEntryEditor( IEntry[] entries, ISearchResult[] searchResults, IBookmark[] bookmarks )
    {
        OpenEntryEditorRunnable runnable = new OpenEntryEditorRunnable( entries, searchResults, bookmarks );
        StudioBrowserJob job = new StudioBrowserJob( runnable );
        job.setPriority( Job.INTERACTIVE ); // Highest priority (just in case)
        job.execute();
    }
View Full Code Here

            LdifFile diff = org.apache.directory.studio.ldapbrowser.core.utils.Utils.computeDiff( entry, clone );
            if ( diff != null )
            {
                UpdateEntryRunnable runnable = new UpdateEntryRunnable( entry, diff
                    .toFormattedString( LdifFormatParameters.DEFAULT ) );
                new StudioBrowserJob( runnable ).execute();
            }
        }

    }
View Full Code Here

        // set new quick search
        conn.getSearchManager().setQuickSearch( quickSearch );

        // execute quick search
        new StudioBrowserJob( new SearchRunnable( new ISearch[]
            { quickSearch } ) ).execute();
    }
View Full Code Here

            IEntry entry = ( IEntry ) inputElement;

            if ( !entry.isAttributesInitialized() )
            {
                InitializeAttributesRunnable runnable = new InitializeAttributesRunnable( entry );
                StudioBrowserJob job = new StudioBrowserJob( runnable );
                job.execute();
                return new Object[0];
            }
            else
            {
                IAttribute[] attributes = entry.getAttributes();
View Full Code Here

        {
            connection.getConnectionWrapper().disconnect();
        }
        else
        {
            new StudioBrowserJob( new OpenConnectionsRunnable( connection ) ).execute();
        }
    }
View Full Code Here

TOP

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

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.