mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
manual cache clearing
This commit is contained in:
@@ -106,6 +106,13 @@ public class ResolveCache {
|
||||
myResolveMaps[index].put(ref, new SoftReference<PsiElement>(results));
|
||||
}
|
||||
|
||||
//for Visual Fabrique
|
||||
public void clearJavaResolveCaches(PsiReference ref) {
|
||||
final boolean physical = ref.getElement().isPhysical();
|
||||
setCachedJavaResolve(ref, null, physical, false);
|
||||
setCachedJavaResolve(ref, null, physical, true);
|
||||
}
|
||||
|
||||
private Reference<PsiElement> getCachedResolve(PsiReference ref, boolean physical, boolean incompleteCode) {
|
||||
int index = getIndex(physical, incompleteCode);
|
||||
final Reference<PsiElement> reference = (Reference<PsiElement>)myResolveMaps[index].get(ref);
|
||||
|
||||
Reference in New Issue
Block a user