org.openide.util.Task.notifyFinished()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中org.openide.util.Task.notifyFinished()方法的一些代码示例,展示了Task.notifyFinished()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.notifyFinished()方法的具体详情如下:
包路径:org.openide.util.Task
类名称:Task
方法名:notifyFinished

Task.notifyFinished介绍

[英]Notify all waiters that this task has finished.
[中]通知所有服务员此任务已完成。

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-util

/** Start the task.
* When it finishes (even with an exception) it calls
* {@link #notifyFinished}.
* Subclasses may override this method, but they
* then need to call {@link #notifyFinished} explicitly.
* <p>Note that this call runs synchronously, but typically the creator
* of the task will call this method in a separate thread.
*/
public void run() {
  try {
    notifyRunning();
    if (run != null) {
      run.run();
    }
  } finally {
    notifyFinished();
  }
}

代码示例来源:origin: in.jlibs/org-openide-util

/** Start the task.
* When it finishes (even with an exception) it calls
* {@link #notifyFinished}.
* Subclasses may override this method, but they
* then need to call {@link #notifyFinished} explicitly.
* <p>Note that this call runs synchronously, but typically the creator
* of the task will call this method in a separate thread.
*/
public void run() {
  try {
    notifyRunning();
    if (run != null) {
      run.run();
    }
  } finally {
    notifyFinished();
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Start the task.
* When it finishes (even with an exception) it calls
* {@link #notifyFinished}.
* Subclasses may override this method, but they
* then need to call {@link #notifyFinished} explicitly.
* <p>Note that this call runs synchronously, but typically the creator
* of the task will call this method in a separate thread.
*/
public void run () {
  try {
    notifyRunning ();
    if (run != null) run.run ();
  } finally {
    notifyFinished ();
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Start the task.
* When it finishes (even with an exception) it calls
* {@link #notifyFinished}.
* Subclasses may override this method, but they
* then need to call {@link #notifyFinished} explicitly.
* <p>Note that this call runs synchronously, but typically the creator
* of the task will call this method in a separate thread.
*/
public void run () {
  try {
    notifyRunning ();
    if (run != null) run.run ();
  } finally {
    notifyFinished ();
  }
}

代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util

/** Start the task.
* When it finishes (even with an exception) it calls
* {@link #notifyFinished}.
* Subclasses may override this method, but they
* then need to call {@link #notifyFinished} explicitly.
* <p>Note that this call runs synchronously, but typically the creator
* of the task will call this method in a separate thread.
*/
public void run() {
  try {
    notifyRunning();
    if (run != null) {
      run.run();
    }
  } finally {
    notifyFinished();
  }
}

相关文章