Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
15b27a26
Commit
15b27a26
authored
6 years ago
by
Pavel Dolgov
Browse files
Options
Download
Email Patches
Plain Diff
Java: Strike deprecated annotation options in completion dialog (IDEA-202314)
parent
03e4f377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
java/java-impl/src/com/intellij/codeInsight/completion/JavaCompletionContributor.java
+3
-1
...lij/codeInsight/completion/JavaCompletionContributor.java
with
3 additions
and
1 deletion
+3
-1
java/java-impl/src/com/intellij/codeInsight/completion/JavaCompletionContributor.java
+
3
-
1
View file @
15b27a26
...
...
@@ -619,7 +619,9 @@ public class JavaCompletionContributor extends CompletionContributor {
if
(
Comparing
.
equal
(
existingAttr
.
getName
(),
attrName
)
||
PsiAnnotation
.
DEFAULT_REFERENCED_METHOD_NAME
.
equals
(
attrName
)
&&
existingAttr
.
getName
()
==
null
)
continue
methods
;
}
LookupElementBuilder
element
=
LookupElementBuilder
.
createWithIcon
(
method
).
withInsertHandler
(
new
InsertHandler
<
LookupElement
>()
{
LookupElementBuilder
element
=
LookupElementBuilder
.
createWithIcon
(
method
)
.
withStrikeoutness
(
PsiImplUtil
.
isDeprecated
(
method
))
.
withInsertHandler
(
new
InsertHandler
<
LookupElement
>()
{
@Override
public
void
handleInsert
(
@NotNull
InsertionContext
context
,
@NotNull
LookupElement
item
)
{
final
Editor
editor
=
context
.
getEditor
();
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help