private void closeProgress() { if (progressHandle != null) { progressHandle.finish(); progressHandle = null; } } }
void close() { if (handle != null) { handle.finish(); } } }
@Override public boolean cancel() { cancelled = true; progressHandle.finish(); return cancelled; } });
public synchronized void close() { if (ph != null) { ph.finish(); ph = null; } } };
/** * finish the task, remove the task's component from the progress bar UI, any additional incoming events from the * contributors will be ignored. */ public synchronized void finish() { if (finished) { return; } finished = true; handle.finish(); }
@Override public boolean cancel() { cancelled = true; progressHandle.finish(); return cancelled; } });
@Override void finish() { handle.finish(); } }
protected @Override void runImpl() { threadRef.set(Thread.currentThread()); try { initRemoteCompilerSets(false, initialize); } finally { progressHandle.finish(); } } });
@Override protected void done() { ph.finish(); if (lrw != null) { statusHandler.resumeLiveUpdates(); } } }.execute();
@Override public void propertyChange(PropertyChangeEvent evt) { if (progressPropertyName.equalsIgnoreCase(evt.getPropertyName())) { handle.progress((Integer) evt.getNewValue()); } else if (finishPropertyName.equalsIgnoreCase(evt.getPropertyName())) { handle.finish(); } } }
public void transferCompleted(TransferEvent arg0) { if (handle != null) { handle.finish(); } if (debug) { writer.println("Completed");//NII18N } }
private void stopLoading() { loadingStarted = false; if (progress != null) { progress.progress(1); progress.finish(); progress = null; } }
@Override public Set<FileObject> instantiate(ProgressHandle handle) throws IOException { try { handle.start(); return instantiate(); } catch (IOException ex) { ex.printStackTrace(System.err); // since caller doesn't report this throw ex; } finally { handle.finish(); } }
public void run () { component.updateData (); component.jdkName.setEditable(true); assert progressHandle != null; progressHandle.finish (); component.progressPanel.setVisible (false); component.progressLabel.setVisible (false); detected = iterator.getPlatform().isValid(); checkValid (); } });
public void run() { progress.finish(); dialog[0].setVisible(false); notifier.notifySearchFinished(); } });
@Override public Set<DataObject> 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 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(); } } });
@Override public void taskFinished(org.openide.util.Task task) { ph.finish(); if(debugMethodProvider == null) { StatusDisplayer.getDefault().setStatusText(Bundle.No_Provider_Found()); } else { debugMethodProvider.debugTestMethod(activatedNodes[0]); } } });
@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(); } }