ProgressBar with Background button

Im developing an webservice deployment tool and using the

ApplicationManager.getApplication().runProcessWithProgressSynchronously(.......)
to run the job with the progress bar.

want to enable the background button on the progress bar. Couldn't find the API to do this.

Help me to get on with this

Thanks in advance

Ruwan

4 comments
Comment actions Permalink

There is no OpenAPI for this. However you can have a look at com.intellij.openapi.progress.ProgressManager as well as com.intellij.openapi.progress.ProgressIndicator which you'd have to implement. There's some non-official classes in idea.jar that you could inherit from to build your own indicator though. Looking at com.intellij.usages.impl.UsageViewImplUtil and its usages in the OpenAPI could help as well.

Sascha

0
Comment actions Permalink

thanks,..... seems need to find another way of doing this

0
Comment actions Permalink

Hello,

You can try this:

final FindProgressIndicator progressIndicator = new FindProgressIndicator(project, "");
progressIndicator.setTitle("My name");
UsageViewImplUtil.runProcessWithProgress(progressIndicator, new Runnable() {
public void run() {}},public void run() {]]>}});

0
Comment actions Permalink

great... it works
thanks

0

Please sign in to leave a comment.