working with progress bars

I am trying to find a complete example of working with a progress bar in intellij plugin development. I have long background running tasks which need to notify the progress bar as each completes.

Any sample code would be greatly appreciated.

1 comment
Comment actions Permalink

ProgressManager.getInstance().run(new Task.Backgroundable(project, title) {
  public void run(ProgressIndicator indicator) {
    indicator.setText("This is how you update the indicator");
    indicator.setFraction(0.5);  // halfway done
  }
});

You can find dozens of examples of using this API in the IntelliJ IDEA Community Edition source code.

0

Please sign in to leave a comment.