mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
setFraction makes sense only for determinate progress indicator
This commit is contained in:
@@ -480,6 +480,7 @@ public class PydevConsoleCommunication extends AbstractConsoleCommunication impl
|
||||
ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> {
|
||||
final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();
|
||||
progressIndicator.setText("Waiting for REPL response with " + (int)(TIMEOUT / 10e8) + "s timeout");
|
||||
progressIndicator.setIndeterminate(false);
|
||||
final long startTime = System.nanoTime();
|
||||
while (nextResponse == null) {
|
||||
if (progressIndicator.isCanceled()) {
|
||||
|
||||
Reference in New Issue
Block a user