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

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

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

Task.run介绍

[英]what to run
[中]跑什么

代码示例

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

public void run () {
  if (!executed) {
    super.run ();
    executed = true;
  }
}

代码示例来源:origin: stackoverflow.com

static Task stop = // some special value

public void run() {
 while (true) {
  Task task = taskQueue.take();
  if (task == stop) {
    break;
  }
  task.run();
 }
}

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

public void run() {
  lastThread = Thread.currentThread();
  super.run();
lastThread = null;
}

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

public void run() {
  lastThread = Thread.currentThread();
  super.run();
lastThread = null;
}

代码示例来源:origin: stackoverflow.com

ExecutorService executor = Executors.newFixedThreadPool(tasks.size());

for (final Task task : tasks) {
  executor.submit(new Runnable() {
    @Override
    public void run() {
      task.run(args);
    }
  });
}

executor.shutdown();
executor.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLSECONDS);

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

assert doc != null;
Task tt = new Task(new Runnable() { private final StyledDocument d = doc; public void run() {}});
tt.run();
return tt;

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

prepareTask.run();

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

prepareTask.run();

相关文章