Examples of worked()


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

                {
                    if ( connection != null && !connection.getConnectionWrapper().isConnected() )
                    {
                        monitor.setTaskName( Messages.bind( Messages.jobs__open_connections_task, new String[]
                            { connection.getName() } ) );
                        monitor.worked( 1 );

                        connection.getConnectionWrapper().connect( monitor );
                        if ( connection.getConnectionWrapper().isConnected() )
                        {
                            connection.getConnectionWrapper().bind( monitor );
View Full Code Here

Examples of org.apache.directory.studio.connection.core.StudioProgressMonitor.worked()

        {
            if ( connection != null && !connection.getJNDIConnectionWrapper().isConnected() )
            {
                monitor.setTaskName( Messages.bind( Messages.jobs__open_connections_task, new String[]
                    { connection.getName() } ) );
                monitor.worked( 1 );

                connection.getJNDIConnectionWrapper().connect( monitor );
                connection.getJNDIConnectionWrapper().bind( monitor );
                for ( IConnectionListener listener : ConnectionCorePlugin.getDefault().getConnectionListeners() )
                {
View Full Code Here

Examples of org.apache.directory.studio.connection.core.jobs.StudioProgressMonitor.worked()

        {
            if ( connection != null && !connection.getJNDIConnectionWrapper().isConnected() )
            {
                monitor.setTaskName( Messages.bind( Messages.jobs__open_connections_task, new String[]
                    { connection.getName() } ) );
                monitor.worked( 1 );

                connection.getJNDIConnectionWrapper().connect( monitor );
                connection.getJNDIConnectionWrapper().bind( monitor );
                for ( IConnectionListener listener : ConnectionCorePlugin.getDefault().getConnectionListeners() )
                {
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

                IFile file = (IFile) resource;
                if (WGADesignResourceValidator.shouldBeValidated(file)) {
                  try {
                    fMonitor.setTaskName("Validating '" + file.getLocation().toString() + "'.");
                    WGADesignResourceValidator.validate(file);
                    fMonitor.worked(1);                     
                  } catch (Exception e) { 
                  }
                }
              }
              if (resource instanceof IContainer) {
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

                IContainer container = (IContainer) resource;
                if (WGADesignResourceValidator.shouldBeValidated(container)) {
                  try {
                    fMonitor.setTaskName("Validating '" + container.getLocation().toString() + "'.");
                    WGADesignResourceValidator.validate(container);
                    fMonitor.worked(1);                     
                  } catch (Exception e) { 
                  }
                }
              }
              if (!fMonitor.isCanceled()) {
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

                      } else {
                        // more jobs were added, just increment by the ratio
                        totalWorked += ratio;
                      }
                      if (totalWorked - lastWorked >= 1) {
                        subProgress.worked((int) (totalWorked - lastWorked));
                        lastWorked = totalWorked;
                      }
                      lastJobsCount = awaitingJobsCount;
                    }
                    previousJob = currentJob;
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

        if (!pack.exists()) {
            String packName = pack.getElementName();
            pack = root.createPackageFragment(packName, true, new SubProgressMonitor(monitorInternal, 1));
        } else {
            monitorInternal.worked(1);
        }

        boolean needsSave;
        ICompilationUnit connectedCU = null;
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

            fCreatedType = createdType;

            if (needsSave) {
                cu.commitWorkingCopy(true, new SubProgressMonitor(monitorInternal, 1));
            } else {
                monitorInternal.worked(1);
            }

        } finally {
            if (connectedCU != null) {
                connectedCU.discardWorkingCopy();
View Full Code Here

Examples of org.eclipse.core.runtime.IProgressMonitor.worked()

            /* (non-Javadoc)
             * @see org.eclipse.core.runtime.IProgressMonitor#worked(int)
             */
            public void worked(int work) {
                progressDelegate.worked(work);
            }

            /* (non-Javadoc)
             * @see org.eclipse.core.runtime.IProgressMonitorWithBlocking#clearBlocked()
             */
 
View Full Code Here

Examples of org.eclipse.core.runtime.SubMonitor.worked()

                    break;
                String string = new String(buffer, 0, bytesRead, encoding);
                out.write(string);

                total += bytesRead;
                progress.worked(bytesRead);
                if (limit >= 0 && total >= limit) {
                    limitReached = true;
                    return;
                }
            }
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.