mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
[features-registry] add some features for existing tips in features registry
(cherry picked from commit 2a91a43bc956d658207ba283d9b161dade15c148) IJ-MR-13748 GitOrigin-RevId: b6bf6a4e8d5273f274bf342de8726cdc01fc9c2d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
22d06a901b
commit
d867333250
@@ -98,6 +98,19 @@
|
||||
min-usage-count="3"
|
||||
first-show="5"
|
||||
successive-show="5"/>
|
||||
<feature id="navigation.recent.locations"
|
||||
tip-file="recent-locations.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="RecentLocations"/>
|
||||
</feature>
|
||||
<feature id="navigation.find.usages"
|
||||
tip-file="find_usages.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="FindUsages"/>
|
||||
</feature>
|
||||
<feature id="navigation.goto.file.line"
|
||||
tip-file="GotoLineInFile.html"
|
||||
show-in-guide="false"/>
|
||||
</group>
|
||||
|
||||
<group id="completion">
|
||||
@@ -280,6 +293,40 @@
|
||||
<track-action id="ConvertToWindowsLineSeparators"/>
|
||||
<track-action id="ConvertToUnixLineSeparators"/>
|
||||
</feature>
|
||||
<feature id="editing.move.statement.up.down"
|
||||
tip-file="MoveUpDown.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="MoveStatementUp"/>
|
||||
<track-action id="MoveStatementDown"/>
|
||||
</feature>
|
||||
<feature id="editing.join.lines"
|
||||
tip-file="JoinLines.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="EditorJoinLines"/>
|
||||
</feature>
|
||||
<feature id="editing.clipboard.history"
|
||||
tip-file="ClipboardStack.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="PasteMultiple"/>
|
||||
</feature>
|
||||
<feature id="editing.duplicate"
|
||||
tip-file="CtrlD.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="EditorDuplicate"/>
|
||||
</feature>
|
||||
<feature id="editing.copy.reference"
|
||||
tip-file="CopyPasteReference.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="CopyReference"/>
|
||||
</feature>
|
||||
<feature id="editing.copy.line"
|
||||
tip-file="CopyWithNoSelection.html"
|
||||
show-in-guide="false"/>
|
||||
<feature id="editing.compare.editor.with.clipboard"
|
||||
tip-file="CompareEditorWithClipboard.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="CompareClipboardWithSelection"/>
|
||||
</feature>
|
||||
</group>
|
||||
|
||||
<group id="codeassists">
|
||||
@@ -396,6 +443,11 @@
|
||||
first-show="3"
|
||||
min-usage-count="5"
|
||||
successive-show="5"/>
|
||||
<feature id="codeassists.highlight.usages"
|
||||
tip-file="HighlightUsagesInFile.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="HighlightUsagesInFile"/>
|
||||
</feature>
|
||||
</group>
|
||||
|
||||
<group id="refactoring">
|
||||
@@ -437,6 +489,11 @@
|
||||
first-show="10"
|
||||
successive-show="8"
|
||||
/>
|
||||
<feature id="refactoring.show.quick.list"
|
||||
tip-file="RefactorThis.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="Refactorings.QuickListPopupAction"/>
|
||||
</feature>
|
||||
</group>
|
||||
|
||||
|
||||
@@ -502,6 +559,16 @@
|
||||
first-show="10"
|
||||
successive-show="5"
|
||||
min-usage-count="5"/>
|
||||
<feature id="ui.close.other.editors"
|
||||
tip-file="CloseOthers.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="CloseAllEditorsButActive"/>
|
||||
</feature>
|
||||
<feature id="ui.close.all.editors"
|
||||
tip-file="Close_all_editor_tabs.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="CloseAllEditors"/>
|
||||
</feature>
|
||||
</group>
|
||||
|
||||
<group id="ant">
|
||||
@@ -544,6 +611,27 @@
|
||||
</feature>
|
||||
<feature id="debugger.evaluate.expression"
|
||||
tip-file="EvaluateExpression.html"/>
|
||||
<feature id="debugger.breakpoint.non.suspending"
|
||||
tip-file="NonSuspendingBreakpoints.html"
|
||||
show-in-guide="false"/>
|
||||
</group>
|
||||
|
||||
<group id="vcs">
|
||||
<feature id="vcs.show.local.history"
|
||||
tip-file="local_history.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="LocalHistory.ShowHistory"/>
|
||||
</feature>
|
||||
<feature id="vcs.show.quick.list"
|
||||
tip-file="VcsQuickList.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="Vcs.QuickListPopupAction"/>
|
||||
</feature>
|
||||
<feature id="vcs.pull.requests"
|
||||
tip-file="pull_requests.html"
|
||||
show-in-guide="false">
|
||||
<track-action id="Github.View.Pull.Request"/>
|
||||
</feature>
|
||||
</group>
|
||||
|
||||
<group id="intentions">
|
||||
@@ -552,5 +640,11 @@
|
||||
show-in-guide="false">
|
||||
<track-intention class-name="org.intellij.lang.regexp.intention.CheckRegExpIntentionAction"/>
|
||||
</feature>
|
||||
<feature id="intentions.fix.javadoc"
|
||||
tip-file="FixDocComment.html"
|
||||
show-in-guide="false">
|
||||
<track-intention class-name="com.intellij.codeInspection.javaDoc.JavaDocReferenceInspection$RemoveTagFix"/>
|
||||
<track-intention class-name="com.intellij.codeInspection.javaDoc.JavaDocReferenceInspection$RenameReferenceQuickFix"/>
|
||||
</feature>
|
||||
</group>
|
||||
</component>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
package com.intellij.codeInsight.editorActions;
|
||||
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.ide.DataManager;
|
||||
import com.intellij.idea.ActionsBundle;
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
@@ -67,6 +68,7 @@ public class CopyHandler extends EditorActionHandler implements CopyAction.Trans
|
||||
if (CopyAction.isSkipCopyPasteForEmptySelection()) {
|
||||
return;
|
||||
}
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("editing.copy.line");
|
||||
editor.getCaretModel().runForEachCaret(__ -> selectionModel.selectLineAtCaret());
|
||||
if (!selectionModel.hasSelection(true)) return;
|
||||
editor.getCaretModel().runForEachCaret(__ -> EditorActionUtil.moveCaretToLineStartIgnoringSoftWraps(editor));
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.ide.actions.searcheverywhere;
|
||||
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.ide.IdeBundle;
|
||||
import com.intellij.ide.actions.SearchEverywherePsiRenderer;
|
||||
import com.intellij.ide.util.gotoByName.FileTypeRef;
|
||||
@@ -132,6 +133,9 @@ public class FileSearchEverywhereContributor extends AbstractGotoSEContributor {
|
||||
OpenFileDescriptor descriptor = new OpenFileDescriptor(myProject, file, pos.first, pos.second);
|
||||
if (descriptor.canNavigate()) {
|
||||
descriptor.navigate(true);
|
||||
if (pos.first > 0) {
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("navigation.goto.file.line");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +110,8 @@ group.diff=Diff Tools
|
||||
group.intentions=Intentions
|
||||
# suppress inspection "UnusedProperty"
|
||||
group.debugger=Debug Tools
|
||||
# suppress inspection "UnusedProperty"
|
||||
group.vcs=Version Control System
|
||||
|
||||
# suppress inspection "UnusedProperty"
|
||||
navigation.popup.action=Go to action
|
||||
@@ -133,6 +135,44 @@ debugger.breakpoint.edit=Edit breakpoint
|
||||
debugger.evaluate.expression=Evaluate expression
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.convert.line.separators=Convert line separators
|
||||
# suppress inspection "UnusedProperty"
|
||||
codeassists.highlight.usages=Highlight usages in file
|
||||
# suppress inspection "UnusedProperty"
|
||||
navigation.find.usages=Find usages
|
||||
# suppress inspection "UnusedProperty"
|
||||
navigation.recent.locations=Show recent locations
|
||||
# suppress inspection "UnusedProperty"
|
||||
navigation.goto.file.line=Go to line in file
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.move.statement.up.down=Move statement up/down
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.join.lines=Join lines
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.clipboard.history=Show clipboard history
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.duplicate=Duplicate line
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.copy.reference=Copy reference
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.copy.line=Copy current line
|
||||
# suppress inspection "UnusedProperty"
|
||||
editing.compare.editor.with.clipboard=Compare editor with clipboard
|
||||
# suppress inspection "UnusedProperty"
|
||||
ui.close.other.editors=Close other editor tabs
|
||||
# suppress inspection "UnusedProperty"
|
||||
ui.close.all.editors=Close all editor tabs
|
||||
# suppress inspection "UnusedProperty"
|
||||
vcs.show.local.history=Show local history of file
|
||||
# suppress inspection "UnusedProperty"
|
||||
vcs.show.quick.list=Show VCS quick list
|
||||
# suppress inspection "UnusedProperty"
|
||||
vcs.pull.requests=Show pull requests
|
||||
# suppress inspection "UnusedProperty"
|
||||
intentions.fix.javadoc=Fix JavaDoc
|
||||
# suppress inspection "UnusedProperty"
|
||||
refactoring.show.quick.list=Show Refactoring quick list
|
||||
# suppress inspection "UnusedProperty"
|
||||
debugger.breakpoint.non.suspending=Non suspending breakpoints
|
||||
|
||||
scratch=New scratch file
|
||||
codeassist.inspect.batch=Inspect Code in Bulk
|
||||
@@ -3,6 +3,7 @@
|
||||
package com.intellij.openapi.editor.actions;
|
||||
|
||||
import com.intellij.codeInsight.hint.HintManagerImpl;
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.openapi.actionSystem.ActionManager;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
@@ -32,6 +33,7 @@ public class CopyAction extends TextComponentEditorAction implements HintManager
|
||||
if (isSkipCopyPasteForEmptySelection()) {
|
||||
return;
|
||||
}
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("editing.copy.line");
|
||||
editor.getCaretModel().runForEachCaret(__ -> {
|
||||
editor.getSelectionModel().selectLineAtCaret();
|
||||
EditorActionUtil.moveCaretToLineStartIgnoringSoftWraps(editor);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.xdebugger.impl.breakpoints;
|
||||
|
||||
import com.intellij.configurationStore.ComponentSerializationUtil;
|
||||
import com.intellij.configurationStore.XmlSerializer;
|
||||
import com.intellij.featureStatistics.FeatureUsageTracker;
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.openapi.actionSystem.ActionGroup;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
@@ -140,6 +141,9 @@ public class XBreakpointBase<Self extends XBreakpoint<P>, P extends XBreakpointP
|
||||
public void setSuspendPolicy(@NotNull SuspendPolicy policy) {
|
||||
if (myState.getSuspendPolicy() != policy) {
|
||||
myState.setSuspendPolicy(policy);
|
||||
if (policy == SuspendPolicy.NONE) {
|
||||
FeatureUsageTracker.getInstance().triggerFeatureUsed("debugger.breakpoint.non.suspending");
|
||||
}
|
||||
fireBreakpointChanged();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user