mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rename: selfish -> highlightReferences
IDEA-CR-5197
This commit is contained in:
+1
-1
@@ -82,7 +82,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass {
|
||||
LOG.assertTrue(writeUsage != null, "null text range from " + handler);
|
||||
}
|
||||
myWriteAccessRanges.addAll(writeUsages);
|
||||
if (handler.selfish()) return;
|
||||
if (!handler.highlightReferences()) return;
|
||||
}
|
||||
|
||||
int flags = TargetElementUtil.ELEMENT_NAME_ACCEPTED | TargetElementUtil.REFERENCED_ELEMENT_ACCEPTED;
|
||||
|
||||
+3
-3
@@ -126,10 +126,10 @@ public abstract class HighlightUsagesHandlerBase<T extends PsiElement> {
|
||||
}
|
||||
|
||||
/**
|
||||
* In case of egoistic handler IdentifierHighlighterPass applies information only from this particular handler.
|
||||
* In case of egoistic handler (highlightReferences = true) IdentifierHighlighterPass applies information only from this particular handler.
|
||||
* Otherwise additional information would be collected from reference search as well.
|
||||
*/
|
||||
public boolean selfish() {
|
||||
return true;
|
||||
public boolean highlightReferences() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user