mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'master' of git@git.labs.intellij.net:idea/community
This commit is contained in:
@@ -158,7 +158,7 @@ public class JavaFindUsagesProvider implements FindUsagesProvider {
|
||||
PsiMethod psiMethod = (PsiMethod)element;
|
||||
String formatted = PsiFormatUtil.formatMethod(psiMethod,
|
||||
PsiSubstitutor.EMPTY, PsiFormatUtil.SHOW_NAME | PsiFormatUtil.SHOW_PARAMETERS,
|
||||
PsiFormatUtil.SHOW_TYPE);
|
||||
PsiFormatUtil.SHOW_TYPE|PsiFormatUtil.SHOW_RAW_NON_TOP_TYPE);
|
||||
PsiClass psiClass = psiMethod.getContainingClass();
|
||||
if (psiClass != null) {
|
||||
return getContainingClassDescription(psiClass, formatted);
|
||||
|
||||
+16
@@ -36,6 +36,8 @@ import com.intellij.openapi.progress.ProgressManager;
|
||||
import com.intellij.openapi.progress.Task;
|
||||
import com.intellij.openapi.progress.impl.ProgressManagerImpl;
|
||||
import com.intellij.openapi.progress.util.ProgressWrapper;
|
||||
import com.intellij.openapi.project.DumbService;
|
||||
import com.intellij.openapi.project.IndexNotReadyException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.project.ProjectUtil;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
@@ -459,6 +461,11 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
cleanup((InspectionManagerEx)manager);
|
||||
throw e;
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
cleanup((InspectionManagerEx)manager);
|
||||
DumbService.getInstance(myProject).showDumbModeNotification("Usage search is not available until indices are ready");
|
||||
throw new ProcessCanceledException();
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
@@ -489,6 +496,9 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
catch (ProcessCanceledException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
@@ -501,6 +511,9 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
catch (ProcessCanceledException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
@@ -534,6 +547,9 @@ public class GlobalInspectionContextImpl implements GlobalInspectionContext {
|
||||
catch (ProcessCanceledException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (IndexNotReadyException e) {
|
||||
throw e;
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
|
||||
+3
-1
@@ -368,7 +368,9 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable imple
|
||||
panel.disposeUI();
|
||||
}
|
||||
myPanels.clear();
|
||||
Disposer.dispose(mySelectionAlarm);
|
||||
if (mySelectionAlarm != null) {
|
||||
Disposer.dispose(mySelectionAlarm);
|
||||
}
|
||||
}
|
||||
|
||||
public void selectProfile(String name) {
|
||||
|
||||
@@ -559,7 +559,7 @@ directory.chooser.hide.non.existent.checkBox.text=&Hide non-existent
|
||||
0.will.be.inaccessible.from.1={0} will be inaccessible from {1}
|
||||
move.classes.command=Moving {0} to package {1}
|
||||
safe.delete.command=Deleting {0}
|
||||
select.all.button=&Select all
|
||||
select.all.button=Select &all
|
||||
unselect.all.button=&Unselect all
|
||||
automatic.renamer.enity.name.column={0} name
|
||||
automatic.renamer.rename.to.column=Rename To
|
||||
|
||||
@@ -215,8 +215,12 @@ public class PagedFileStorage implements Forceable {
|
||||
}
|
||||
|
||||
public void close() {
|
||||
force();
|
||||
unmapAll();
|
||||
try {
|
||||
force();
|
||||
}
|
||||
finally {
|
||||
unmapAll();
|
||||
}
|
||||
}
|
||||
|
||||
private void unmapAll() {
|
||||
|
||||
Reference in New Issue
Block a user