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
请先登录再写评论。
You need to call either setFraction() or setIndeterminate(true) on the progress indicator instance.
Thanks, Dmitry, it works.