本文整理了Java中org.openide.util.Task.isFinished()
方法的一些代码示例,展示了Task.isFinished()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.isFinished()
方法的具体详情如下:
包路径:org.openide.util.Task
类名称:Task
方法名:isFinished
[英]Test whether the task has finished running.
[中]测试任务是否已完成运行。
代码示例来源:origin: org.netbeans.api/org-openide-util
/** 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");
}
}
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
/** 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");
}
}
代码示例来源:origin: stackoverflow.com
Task task = process.peek();
if (task.isFinished()) { ... }
代码示例来源:origin: org.netbeans.modules/org-netbeans-bootstrap
@Override
public boolean isDone() {
return WAIT.isFinished();
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** 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();
}
}
代码示例来源:origin: in.jlibs/org-openide-util
/** 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();
}
}
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
/** 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");
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/** 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();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-project
/** 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());
}
}
代码示例来源:origin: org.netbeans.api/org-netbeans-spi-quicksearch
found = true;
break;
} else if (evaluate.isFinished()) {
found = checkActionWasFound(model, false);
break;
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-web-project
if (loadingFrameworksTask != null && loadingFrameworksTask.isFinished()) {
StringBuffer sb = new StringBuffer(50);
if (currentFrameworks != null && currentFrameworks.size() > 0) {
内容来源于网络,如有侵权,请联系作者删除!