add many processes internal action: add a long description for some processes

This commit is contained in:
Sergey Ignatov
2015-11-05 21:55:36 +03:00
parent ea0ca63b68
commit aa718cb026
@@ -37,16 +37,18 @@ public class AddManyTestProcesses extends DumbAwareAction {
public void actionPerformed(AnActionEvent e) {
final Project project = e.getData(CommonDataKeys.PROJECT);
for (int i = 0; i < 100; i++) {
final int finalI = i;
new Task.Backgroundable(project, "Test Process", true, PerformInBackgroundOption.ALWAYS_BACKGROUND) {
public void run(@NotNull final ProgressIndicator indicator) {
for (int j = 0; j < 10000; j++) {
TimeoutUtil.sleep(1);
indicator.setText("foo " + j);
if (finalI % 10 == 0) {
indicator.setText2(j + " foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo");
}
}
}
}.queue();
}
}
}