mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
cancel background task on progress cancelling (IDEA-83540)
This commit is contained in:
@@ -245,7 +245,7 @@ public class MarkerType {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
public void run(@NotNull final ProgressIndicator indicator) {
|
||||
super.run(indicator);
|
||||
ClassInheritorsSearch.search(myClass, ApplicationManager.getApplication().runReadAction(new Computable<SearchScope>() {
|
||||
@Override
|
||||
@@ -255,7 +255,10 @@ public class MarkerType {
|
||||
}), true).forEach(new CommonProcessors.CollectProcessor<PsiClass>() {
|
||||
@Override
|
||||
public boolean process(final PsiClass o) {
|
||||
updateComponent(o, myRenderer.getComparator());
|
||||
if (!updateComponent(o, myRenderer.getComparator())) {
|
||||
indicator.cancel();
|
||||
}
|
||||
indicator.checkCanceled();
|
||||
return super.process(o);
|
||||
}
|
||||
});
|
||||
@@ -281,13 +284,16 @@ public class MarkerType {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
public void run(@NotNull final ProgressIndicator indicator) {
|
||||
super.run(indicator);
|
||||
OverridingMethodsSearch.search(myMethod, true).forEach(
|
||||
new CommonProcessors.CollectProcessor<PsiMethod>() {
|
||||
@Override
|
||||
public boolean process(PsiMethod psiMethod) {
|
||||
updateComponent(psiMethod, myRenderer.getComparator());
|
||||
if (!updateComponent(psiMethod, myRenderer.getComparator())) {
|
||||
indicator.cancel();
|
||||
}
|
||||
indicator.checkCanceled();
|
||||
return super.process(psiMethod);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user