Progress indicator doesn't show "indicating"

Hello, all

I tried to run backgroung process with indication, but it doesn't show "indicating", just empty line.
If I uncomment "getProgressIndicator().start()" line then it begins to work, but I have an assert exception.

               ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() {
                    @Override
                    public void run() {
                        //ProgressManager.getInstance().getProgressIndicator().start();
                        try {
                            antParser.init(antBuildFile);
                        } catch (BuildException e) {
                            logger.error("Error happened during initialization of Ant build file - " + e.getMessage());
                        }
                    }
                }, "Import '" + currentModule.getName() + "' dependencies", false, currentProject);



So, how does it use in right way?

Thanks,
Dmitriy
2 comments
Comment actions Permalink

You need to call either setFraction() or setIndeterminate(true) on the progress indicator instance.

0
Comment actions Permalink

Thanks, Dmitry, it works.

0

Please sign in to leave a comment.