How to update status of ProgressIndicator from within GlobalInspectionContextExtension
I have source code like:
public class MyInspectionContext implements GlobalInspectionContextExtension< MyInspectionContext > {
@Override
public void performPreRunActivities(...) {
ProgressManager.getInstance().getProgressIndicator().setFraction(0.01);
ProgressManager.getInstance().getProgressIndicator().setText("Test");
ProgressManager.getInstance().getProgressIndicator().setText2("change me");
... code which takes more then a minute ...
}
}
But any actions on setFraction() or setText() seems to have no effect, instead you always see "Inspecting Code...".
How to change the status information of the progressIndicator within GlobalInspectionContextExtension?
Please sign in to leave a comment.
See org.jetbrains.android.inspections.lint.AndroidLintGlobalInspectionContext#performPreRunActivities on how to access ProgressIndicator in this context.
many thx,
did the trick.