handle.start (); err.log (Level.FINE, "Show progressPanel later.");
/** * start the progress indication for the task with an initial time estimate, shows the progress in the UI, events from the contributors are * expected after this call. * @param estimate estimated time to process the task in seconds */ public synchronized void start(long estimate) { handle.start(WORKUNITS, estimate); current = 0; }
/** * start the progress indication for a task with known number of steps. * <code>start</code> method can be called just once. * @param workunits total number of workunits that will be processed */ public void start(int workunits) { start(workunits, -1); }
private synchronized void startProgress() { if (!progressRunning && progressHandle != null) { progressHandle.start(); progressRunning = true; } }
/** * Start the progress indication for indeterminate task. */ @Override public void start() { if (handle != null) { started = true; handle.start(); } }
/** * start the progress indication for indeterminate task. * it will be visualized by a progress bar in indeterminate mode. * <code>start</code> method can be called just once. */ public void start() { start(0, -1); }
public synchronized ProgressDisplayer showProgress(String message, ProgressController controller) { ph = ProgressHandleFactory.createHandle(message, controller); ph.start(); return DEFAULT; }
@Override public void starting() { handle.start(10); String msg = NbBundle.getMessage( NewPhpProjectWizardIterator.class, "LBL_NewPhpProjectWizardIterator_WizardProgress_CreatingProject"); handle.progress(msg, 2); }
@Override public void starting() { handle.start(units); String msg = NbBundle.getMessage( NewPhpProjectWizardIterator.class, "LBL_NewPhpProjectWizardIterator_WizardProgress_CreatingProject"); handle.progress(msg, 2); }
public synchronized ProgressDisplayer showProgress(String message) { ph = ProgressHandleFactory.createHandle(message); ph.start(); return DEFAULT; }
@Override public void operationStart(Operation operation, Collection<TransferFile> forFiles) { if (operations.isEmpty()) { assert workUnits >= 0 : workUnits + " :: " + forFiles; progressHandle.start(workUnits); } operations.offerFirst(operation); if (operation == Operation.LIST) { progressHandle.progress(NbBundle.getMessage(RemoteCommand.class, "LBL_ListingFiles", forFiles.iterator().next().getName())); progressHandle.switchToIndeterminate(); } }
@Override public Set<?> instantiate(ProgressHandle handle) throws IOException { try { handle.start(); return instantiate(); } finally { handle.finish(); } }
@Override public void run() { ProgressHandle handle = ProgressHandleFactory.createHandle(displayName); handle.start(); handle.switchToIndeterminate(); try { ref.set(operation.run(handle)); } finally { handle.finish(); } } }, displayName, new AtomicBoolean(false), true, 0, 0);
@Override protected void doInBackground() { ph.setInitialDelay(500); ph.start(); ResultsManager.getDefault().saveSnapshot(snapshot); }
@Override public void beginTask(String taskName, int totalWork) { this.progressHandle.setDisplayName(taskName); this.progressHandle.start(totalWork, -1); if (this.isIndeterminate) { this.progressHandle.switchToIndeterminate(); } if (this.console != null) { this.console.setVisible(true); } }
@Override public void run() { ProgressHandle handle = ProgressHandleFactory.createHandle(NbBundle.getMessage(CreateTestsAction.class, "LBL_CreatingTests")); handle.start(); try { LifecycleManager.getDefault().saveAll(); generateTests(activatedNodes, phpProject, testingProvider); } finally { handle.finish(); } } });
private void startLoading() { LOG.fine("start loading doc"); //NOI18N Directive[] dirs = Directive.values(); directives = Enumerations.array(dirs); progress = ProgressHandleFactory.createHandle(Bundle.doc_building()); progress.start(dirs.length); buildDoc(); }
@Override public void actionPerformed(ActionEvent e) { ProgressHandle p = ProgressHandleFactory.createHandle("Recording snapshot..."); p.start(); logger.log(Level.INFO, "Creating snapshot..."); SnapshotBuffer buffer = SnapshotManager.getCurrentBuffer(); buffer.stopBuffering(Options.getSnapshotBufferFinish()); buffer.writeToFile(); p.finish(); } }
public void scanningStarted(IndexingContext ctx) { handle = ProgressHandleFactory.createHandle("Indexing Repo : " + (ri!=null? ri.getName() : indexingContext.getId())); if (debug) { writer.println("Indexing Repo : " + (ri!=null? ri.getName():ctx.getId())); writer.println("Index Directory : " + ctx.getIndexDirectory().toString()); writer.println("--------------------------------------------------------"); writer.println("Scanning started at " + SimpleDateFormat.getInstance().format(new Date())); } handle.start(); handle.switchToIndeterminate(); tstart = System.currentTimeMillis(); }
@SuppressWarnings("LeakingThisInConstructor") @Messages({"# {0} - repo name", "LBL_Transfer=Transferring Maven repository index: {0}"}) public RemoteIndexTransferListener(RepositoryInfo info) { this.info = info; Cancellation.register(this); handle = ProgressHandleFactory.createHandle(LBL_Transfer(info.getName()), this); handle.start(); }