mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
handle INRE in package project view nodes (EA-97460 - INRE: FileBasedIndexImpl.handleDumbMode)
This commit is contained in:
@@ -24,6 +24,7 @@ import com.intellij.openapi.extensions.Extensions;
|
||||
import com.intellij.openapi.ide.CopyPasteManager;
|
||||
import com.intellij.openapi.module.Module;
|
||||
import com.intellij.openapi.module.ModuleUtilCore;
|
||||
import com.intellij.openapi.project.IndexNotReadyException;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vfs.VfsUtilCore;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
@@ -108,13 +109,15 @@ public class PackageElementNode extends ProjectViewNode<PackageElement> {
|
||||
|
||||
@Override
|
||||
protected void update(final PresentationData presentation) {
|
||||
PackageElement value = getValue();
|
||||
if (value != null && value.getPackage().isValid() && (value.getModule() == null || !value.getModule().isDisposed())) {
|
||||
updateValidData(presentation, value);
|
||||
}
|
||||
else {
|
||||
setValue(null);
|
||||
try {
|
||||
PackageElement value = getValue();
|
||||
if (value != null && value.getPackage().isValid() && (value.getModule() == null || !value.getModule().isDisposed())) {
|
||||
updateValidData(presentation, value);
|
||||
return;
|
||||
}
|
||||
}
|
||||
catch (IndexNotReadyException ignore) {}
|
||||
setValue(null);
|
||||
}
|
||||
|
||||
private void updateValidData(PresentationData presentation, PackageElement value) {
|
||||
|
||||
Reference in New Issue
Block a user