mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
(no message)
This commit is contained in:
@@ -535,6 +535,7 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx
|
||||
final boolean wasCanceled = myUpdateProgress.isCanceled();
|
||||
final boolean wasRunning = myUpdateProgress.isRunning();
|
||||
|
||||
myUpdateThreadSemaphore.up();
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
if (myDisposed) return;
|
||||
@@ -548,7 +549,6 @@ public class DaemonCodeAnalyzerImpl extends DaemonCodeAnalyzer implements JDOMEx
|
||||
}
|
||||
}
|
||||
}, ModalityState.stateForComponent(editor.getComponent()));
|
||||
myUpdateThreadSemaphore.up();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.intellij.ide.structureView.impl.java;
|
||||
import com.intellij.ide.structureView.StructureViewTreeElement;
|
||||
import com.intellij.navigation.ItemPresentation;
|
||||
import com.intellij.psi.PsiField;
|
||||
import com.intellij.psi.PsiSubstitutor;
|
||||
import com.intellij.psi.util.PsiFormatUtil;
|
||||
|
||||
public class PsiFieldTreeElement extends JavaClassTreeElementBase<PsiField>{
|
||||
public PsiFieldTreeElement(PsiField field, boolean isInherited) {
|
||||
@@ -18,7 +20,11 @@ public class PsiFieldTreeElement extends JavaClassTreeElementBase<PsiField>{
|
||||
}
|
||||
|
||||
public String getPresentableText() {
|
||||
return getElement().getName();
|
||||
return PsiFormatUtil.formatVariable(
|
||||
getElement(),
|
||||
PsiFormatUtil.SHOW_NAME | PsiFormatUtil.SHOW_TYPE | PsiFormatUtil.TYPE_AFTER,
|
||||
PsiSubstitutor.EMPTY
|
||||
);
|
||||
}
|
||||
|
||||
public PsiField getField() {
|
||||
|
||||
Reference in New Issue
Block a user