mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't advertise class-name completion in lookups
This commit is contained in:
+3
-3
@@ -471,9 +471,9 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
PsiElement position = parameters.getPosition();
|
||||
if (psiElement().withParent(psiReferenceExpression().withFirstChild(psiReferenceExpression().referencing(psiClass()))).accepts(position)) {
|
||||
if (CompletionUtil.shouldShowFeature(parameters, JavaCompletionFeatures.GLOBAL_MEMBER_NAME)) {
|
||||
final String shortcut = getActionShortcut(IdeActions.ACTION_CLASS_NAME_COMPLETION);
|
||||
final String shortcut = getActionShortcut(IdeActions.ACTION_CODE_COMPLETION);
|
||||
if (shortcut != null) {
|
||||
return "Pressing " + shortcut + " without a class qualifier would show all accessible static methods";
|
||||
return "Pressing " + shortcut + " twice without a class qualifier would show all accessible static methods";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -490,7 +490,7 @@ public class JavaCompletionContributor extends CompletionContributor {
|
||||
|
||||
if (parameters.getCompletionType() != CompletionType.CLASS_NAME && shouldSuggestClassNameCompletion(parameters.getPosition())) {
|
||||
if (CompletionUtil.shouldShowFeature(parameters, CodeCompletionFeatures.EDITING_COMPLETION_CLASSNAME)) {
|
||||
final String shortcut = getActionShortcut(IdeActions.ACTION_CLASS_NAME_COMPLETION);
|
||||
final String shortcut = getActionShortcut(IdeActions.ACTION_CODE_COMPLETION);
|
||||
if (shortcut != null) {
|
||||
return CompletionBundle.message("completion.class.name.hint", shortcut);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user