mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
deprecate and don't use objects related to class name completion
This commit is contained in:
@@ -4,5 +4,5 @@ package com.intellij.codeInsight.completion;
|
||||
* @author peter
|
||||
*/
|
||||
public enum CompletionType {
|
||||
BASIC, SMART, CLASS_NAME
|
||||
BASIC, SMART, @Deprecated CLASS_NAME
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ public class CodeInsightSettings implements PersistentStateComponent<Element>, C
|
||||
|
||||
public boolean AUTOCOMPLETE_ON_CODE_COMPLETION = true;
|
||||
public boolean AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = true;
|
||||
public boolean AUTOCOMPLETE_ON_CLASS_NAME_COMPLETION = false;
|
||||
@Deprecated public boolean AUTOCOMPLETE_ON_CLASS_NAME_COMPLETION = false;
|
||||
public boolean AUTOCOMPLETE_COMMON_PREFIX = true;
|
||||
public boolean SHOW_STATIC_AFTER_INSTANCE = false;
|
||||
|
||||
|
||||
+3
-5
@@ -803,12 +803,10 @@ public class CodeCompletionHandlerBase {
|
||||
|
||||
private static boolean isAutocompleteOnInvocation(final CompletionType type) {
|
||||
final CodeInsightSettings settings = CodeInsightSettings.getInstance();
|
||||
switch (type) {
|
||||
case CLASS_NAME: return settings.AUTOCOMPLETE_ON_CLASS_NAME_COMPLETION;
|
||||
case SMART: return settings.AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION;
|
||||
case BASIC:
|
||||
default: return settings.AUTOCOMPLETE_ON_CODE_COMPLETION;
|
||||
if (type == CompletionType.SMART) {
|
||||
return settings.AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION;
|
||||
}
|
||||
return settings.AUTOCOMPLETE_ON_CODE_COMPLETION;
|
||||
}
|
||||
|
||||
private static Runnable rememberDocumentState(final Editor _editor) {
|
||||
|
||||
Reference in New Issue
Block a user