mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnostics: completion can't be restarted
This commit is contained in:
+6
-2
@@ -453,7 +453,7 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
@Override
|
||||
public void start() {
|
||||
if (isCanceled()) {
|
||||
throw new AssertionError("Restarting completion process is prohibited");
|
||||
throw new AssertionError("Restarting completion process is prohibited: trace=" + cancelTrace);
|
||||
}
|
||||
|
||||
super.start();
|
||||
@@ -462,7 +462,11 @@ public class CompletionProgressIndicator extends ProgressIndicatorBase implement
|
||||
@Override
|
||||
public void initStateFrom(@NotNull ProgressIndicatorEx indicator) {
|
||||
if (isCanceled()) {
|
||||
throw new AssertionError("Re-init-ting completion process is prohibited");
|
||||
throw new AssertionError("Re-init-ting completion process is prohibited: trace=" + cancelTrace);
|
||||
}
|
||||
|
||||
if (indicator.isCanceled()) {
|
||||
LOG.error("initStateFrom canceled: " + indicator);
|
||||
}
|
||||
|
||||
super.initStateFrom(indicator);
|
||||
|
||||
Reference in New Issue
Block a user