com.bc.ceres.core.ProgressMonitor.setTaskName()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(96)

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

ProgressMonitor.setTaskName介绍

暂无

代码示例

代码示例来源:origin: senbox-org/snap-desktop

private static File[] collectAllSubDirs(final File dir, int count, final ProgressMonitor pm) {
  final List<File> dirList = new ArrayList<>(20);
  final ProductFunctions.DirectoryFileFilter dirFilter = new ProductFunctions.DirectoryFileFilter();
  final File[] subDirs = dir.listFiles(dirFilter);
  if (subDirs != null) {
    count += subDirs.length;
    pm.setTaskName("Collecting " + count + " folders...");
    for (final File subDir : subDirs) {
      dirList.add(subDir);
      final File[] dirs = collectAllSubDirs(subDir, count, pm);
      dirList.addAll(Arrays.asList(dirs));
    }
  }
  return dirList.toArray(new File[dirList.size()]);
}

代码示例来源:origin: senbox-org/snap-desktop

fileList.addAll(Arrays.asList(files));
pm.setTaskName("Collecting " + fileList.size() + " files...");
  if (prodCount > 0)
    taskMsg += "(" + prodCount + " new products)";
  pm.setTaskName(taskMsg);
  pm.worked(1);
    pm.setTaskName("Generating Quicklook... " + (j + 1) + " of " + numQL);
    pm.worked(1);
    if (pm.isCanceled())
pm.setTaskName("");

代码示例来源:origin: bcdev/beam

desktopPane);
pm.setTaskName("Loading commands");
loadCommands();
pm.worked(1);
pm.setTaskName("Loading tool windows");
loadToolViews();
pm.worked(1);
pm.setTaskName("Starting plugins");
loadPlugins();
plugInManager.startPlugins();

相关文章