ProgressIndicator in IntelliJ 7.0

I'm working with progress bars in IntelliJ 7.0. So, I'm having something like this:
new Task.Backgroundable(project, "Search", true) {
public boolean shouldStartInBackground() {
return false;

public void processSentToBackground() {

public void processRestoredToForeground() {

public void run(ProgressIndicator indicator) {
//performing some operations
}.setCancelText("Stop loading").queue();

In fact I receive here a progress bar which can be put to background via button 'Background' or can be cancelled via button 'Cancel'. If I run this code I have a progress bar, but progress indicator can't be seen, only when I click on Background button, progress indicator appears (I don't need any percents in my case, just indicator which will indicate that process is running). Why it is shown only in background mode? What am I doing wrong?

Edited by: ALincoln on Jul 18, 2008 6:40 PM

1 comment
Comment actions Permalink

I tried also such things:
indicator.setInderterminate(true) - in fact this doesn't help (I've got indeterminate indicator in background only, but not in main progress bar). I don't know what I'm doing wrong.


Please sign in to leave a comment.