mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
feature usage for postfix completion
This commit is contained in:
+3
@@ -24,6 +24,7 @@ import com.intellij.codeInsight.template.impl.TemplateSettings;
|
||||
import com.intellij.codeInsight.template.postfix.completion.PostfixTemplateLookupElement;
|
||||
import com.intellij.codeInsight.template.postfix.settings.PostfixTemplatesSettings;
|
||||
import com.intellij.codeInsight.template.postfix.util.Aliases;
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.lang.java.JavaLanguage;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.command.CommandProcessor;
|
||||
@@ -115,6 +116,8 @@ public class PostfixLiveTemplate extends CustomLiveTemplateBase {
|
||||
public void expand(@NotNull final String key, @NotNull final CustomTemplateCallback callback) {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("editing.completion.postfix");
|
||||
|
||||
final PostfixTemplate template = getTemplateByKey(key);
|
||||
final Editor editor = callback.getEditor();
|
||||
final PsiFile file = callback.getContext().getContainingFile();
|
||||
|
||||
@@ -58,6 +58,7 @@ editing.completion.camelHumps=Camel prefixes in code completion
|
||||
editing.completion.finishByControlEnter=Finish lookup even when non-focused
|
||||
editing.completion.cancelByControlArrows=Cancel lookup and move caret up/down in the editor
|
||||
editing.completion.changeSorting=Changing completion variants sorting
|
||||
editing.completion.postfix=Postfix completion
|
||||
editing.select.word=Syntax aware selection
|
||||
editing.incremental.search=Editor incremental search
|
||||
codeassists.quickjavadoc=Quick Documentation popup
|
||||
|
||||
@@ -152,7 +152,7 @@
|
||||
<tipAndTrick file="SecondSmartCompletionToar.html" feature-id="editing.completion.second.smarttype.toar"/>
|
||||
<tipAndTrick file="ChangeSorting.html" feature-id="editing.completion.changeSorting"/>
|
||||
|
||||
<tipAndTrick file="PostfixCompletion.html"/>
|
||||
<tipAndTrick file="PostfixCompletion.html" feature-id="editing.completion.postfix"/>
|
||||
<tipAndTrick file="LiveTemplatesRestore.html"/>
|
||||
<tipAndTrick file="Multicursor.html"/>
|
||||
<tipAndTrick file="Multicursor1.html"/>
|
||||
|
||||
@@ -237,6 +237,12 @@
|
||||
min-usage-count="10"
|
||||
first-show="2"
|
||||
successive-show="3"/>
|
||||
<feature
|
||||
id="editing.completion.postfix"
|
||||
tip-file="PostfixCompletion.html"
|
||||
min-usage-count="10"
|
||||
first-show="2"
|
||||
successive-show="3"/>
|
||||
</group>
|
||||
|
||||
<group id="editing">
|
||||
|
||||
Reference in New Issue
Block a user