mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-92332 Breakpoints alowed on import and package statments.
This commit is contained in:
+2
-1
@@ -98,7 +98,8 @@ public abstract class JavaLineBreakpointTypeBase<P extends JavaBreakpointPropert
|
||||
@Override
|
||||
public boolean process(PsiElement element) {
|
||||
// avoid comments
|
||||
if ((element instanceof PsiWhiteSpace) || (PsiTreeUtil.getParentOfType(element, PsiComment.class, false) != null)) {
|
||||
if ((element instanceof PsiWhiteSpace)
|
||||
|| (PsiTreeUtil.getParentOfType(element, PsiComment.class, PsiImportStatementBase.class, PsiPackageStatement.class) != null)) {
|
||||
return true;
|
||||
}
|
||||
PsiElement parent = element;
|
||||
|
||||
Reference in New Issue
Block a user