mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
toString impls for builtin visibility checkers
This commit is contained in:
@@ -136,6 +136,11 @@ public interface JavaCodeFragment extends PsiImportHolder, PsiCodeFragment {
|
||||
public Visibility isDeclarationVisible(PsiElement declaration, PsiElement place) {
|
||||
return Visibility.VISIBLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "EVERYTHING_VISIBLE";
|
||||
}
|
||||
};
|
||||
|
||||
VisibilityChecker PROJECT_SCOPE_VISIBLE = new VisibilityChecker() {
|
||||
@@ -143,6 +148,11 @@ public interface JavaCodeFragment extends PsiImportHolder, PsiCodeFragment {
|
||||
public Visibility isDeclarationVisible(PsiElement declaration, PsiElement place) {
|
||||
return declaration.getManager().isInProject(declaration) ? Visibility.VISIBLE : Visibility.NOT_VISIBLE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "PROJECT_SCOPE_VISIBLE";
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user