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

Examples of org.apache.directory.studio.common.core.jobs.StudioProgressMonitor.done()


            {
                monitor.reportError( e );
            }
        }
        // always set done, even if errors were reported
        monitor.done();
        ipm.done();

        // error handling
        if ( monitor.isCanceled() )
        {
View Full Code Here


            // - if there was a referral and the entry was created on another (master) server and not yet sync'ed to the current server
            // So we use a dummy monitor to no bother the user with an error message.
            StudioProgressMonitor dummyMonitor = new StudioProgressMonitor( monitor );
            createdEntry = ReadEntryRunnable
                .getEntry( browserConnection, entryToCreate.getDn(), controls, dummyMonitor );
            dummyMonitor.done();
            if ( createdEntry != null )
            {
                createdEntry.setHasChildrenHint( false );

                // set some flags at the parent
View Full Code Here

                // In some cases this don't work:
                // - if there was a referral and the entry was created on another (master) server and not yet sync'ed to the current server
                // So we use a dummy monitor to no bother the user with an error message.
                dummyMonitor.reset();
                newEntry = ReadEntryRunnable.getEntry( browserConnection, newDn, controls, dummyMonitor );
                dummyMonitor.done();
                if ( newEntry != null )
                {
                    parent.addChild( newEntry );
                }
                parent.setHasMoreChildren( hasMoreChildren );
View Full Code Here

                        // Reporting the error to the progress monitor
                        spm.reportError( e );
                    }

                    // Reporting to the monitors that we're done
                    spm.done();
                }
            } );
        }
        catch ( Exception e )
        {
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.