mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEADEV-41398: issue of importing inner class in JSP
This commit is contained in:
+5
-2
@@ -131,8 +131,11 @@ public class JavaClassReference extends GenericReference implements PsiJavaRefer
|
||||
}
|
||||
|
||||
private boolean isStaticClassReference(final String s) {
|
||||
final char separator = myJavaClassReferenceSet.isAllowDollarInNames() ? JavaClassReferenceSet.SEPARATOR2 : JavaClassReferenceSet.SEPARATOR;
|
||||
return myIndex > 0 && s.charAt(getRangeInElement().getStartOffset() - 1) == separator;
|
||||
if (myIndex == 0) {
|
||||
return false;
|
||||
}
|
||||
char c = s.charAt(getRangeInElement().getStartOffset() - 1);
|
||||
return myJavaClassReferenceSet.isStaticSeparator(c);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
+4
@@ -191,6 +191,10 @@ public class JavaClassReferenceSet {
|
||||
return !Boolean.FALSE.equals(aBoolean) && myElement.getLanguage() instanceof XMLLanguage;
|
||||
}
|
||||
|
||||
protected boolean isStaticSeparator(char c) {
|
||||
return isAllowDollarInNames() ? c == SEPARATOR2 : c == SEPARATOR;
|
||||
}
|
||||
|
||||
public void reparse(PsiElement element, final TextRange range) {
|
||||
final String text = range.substring(element.getText());
|
||||
reparse(text, element, false, myContext);
|
||||
|
||||
Reference in New Issue
Block a user