mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
progress indicators are indeterminate by default
maven indicators
This commit is contained in:
@@ -240,6 +240,7 @@ public class MavenIndicesManager implements Disposable {
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
try {
|
||||
indicator.setIndeterminate(false);
|
||||
doUpdateIndices(projectOrNull, toSchedule, fullUpdate, new MavenProgressIndicator(indicator));
|
||||
}
|
||||
catch (MavenProcessCanceledException ignore) {
|
||||
|
||||
+3
-1
@@ -38,7 +38,9 @@ public class MavenProgressIndicator {
|
||||
public synchronized void setIndicator(ProgressIndicator i) {
|
||||
i.setText(myIndicator.getText());
|
||||
i.setText2(myIndicator.getText2());
|
||||
i.setFraction(myIndicator.getFraction());
|
||||
if (!i.isIndeterminate()) {
|
||||
i.setFraction(myIndicator.getFraction());
|
||||
}
|
||||
if (i.isCanceled()) i.cancel();
|
||||
myIndicator = i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user