/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel() { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { LOG.log(Level.FINE, "Cancelling for {0}", comp4Init); wasCancelled = true; } ((Cancellable) initJob).cancel(); LOG.fine("Cancelling done"); } }
/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel() { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { LOG.log(Level.FINE, "Cancelling for {0}", comp4Init); wasCancelled = true; } ((Cancellable) initJob).cancel(); LOG.fine("Cancelling done"); } }
Task task = process.peek(); if (task.isFinished()) { ... }
@Override public boolean isDone() { return WAIT.isFinished(); }
/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel () { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { wasCancelled = true; } ((Cancellable)initJob).cancel(); } }
/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel() { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { wasCancelled = true; } ((Cancellable) initJob).cancel(); } }
/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel() { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { LOG.log(Level.FINE, "Cancelling for {0}", comp4Init); wasCancelled = true; } ((Cancellable) initJob).cancel(); LOG.fine("Cancelling done"); } }
/** Delegates valid cancel requests to asociated AsyncGUIJob, in the case * job supports cancelling. */ private void cancel () { if ((initTask != null) && !initTask.isFinished() && (initJob instanceof Cancellable)) { synchronized (CANCELLED_LOCK) { wasCancelled = true; } ((Cancellable)initJob).cancel(); } }
/** Creates new form CustomizerFrameworks */ public CustomizerFrameworks(ProjectCustomizer.Category category, WebProjectProperties uiProperties) { this.category = category; this.uiProperties = uiProperties; initComponents(); project = uiProperties.getProject(); jListFrameworks.setModel(new DefaultListModel()); ((DefaultListModel) jListFrameworks.getModel()).addElement(NbBundle.getMessage(CustomizerFrameworks.class, "LBL_CustomizerFrameworks_Loading")); // do not load frameworks again but use list from uiProperties; list is being loaded in background thread: uiProperties.getLoadingFrameworksTask().addTaskListener(new TaskListener() { public void taskFinished(Task task) { SwingUtilities.invokeLater(new Runnable() { public void run() { initFrameworksList(project.getAPIWebModule()); } }); } }); if (uiProperties.getLoadingFrameworksTask().isFinished()) { initFrameworksList(project.getAPIWebModule()); } }
found = true; break; } else if (evaluate.isFinished()) { found = checkActionWasFound(model, false); break;
if (loadingFrameworksTask != null && loadingFrameworksTask.isFinished()) { StringBuffer sb = new StringBuffer(50); if (currentFrameworks != null && currentFrameworks.size() > 0) {