more platform actions

GitOrigin-RevId: 39ad94df627b94ef4f630b9939c103a3e2d58a91
This commit is contained in:
Sergey Ignatov
2020-01-01 16:31:42 +00:00
committed by intellij-monorepo-bot
parent 89c610e27f
commit b4f8b452a0
5 changed files with 17 additions and 9 deletions
@@ -19,7 +19,7 @@ import javax.swing.AbstractAction
import javax.swing.Action
import javax.swing.JComponent
internal class PluginStartupCostAction : DumbAwareAction() {
internal class AnalyzePluginStartupPerformanceAction : DumbAwareAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project ?: return
PluginStartupCostDialog(project).show()
@@ -64,7 +64,6 @@ class PluginStartupCostDialog(private val project: Project) : DialogWrapper(proj
true
}
@Suppress("UNCHECKED_CAST")
val ids = costMap.keys()
ids.sort()
val costDetails = StringBuilder()
@@ -90,7 +89,8 @@ class PluginStartupCostDialog(private val project: Project) : DialogWrapper(proj
val columns = if (ApplicationManager.getApplication().isInternal) {
arrayOf(pluginColumn, costColumn, costDetailsColumn)
} else {
}
else {
arrayOf(pluginColumn, costColumn)
}
@@ -3,6 +3,7 @@ package com.intellij.ide.actions;
import com.intellij.ide.troubleshooting.CompositeGeneralTroubleInfoCollector;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.idea.ActionsBundle;
import com.intellij.notification.*;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
@@ -133,6 +134,6 @@ public class CollectZippedLogsAction extends AnAction implements DumbAware {
@NotNull
private static String getActionName() {
return "Compress Logs and Show in " + RevealFileAction.getFileManagerName();
return ActionsBundle.message("compress.logs.and.show.in.0", RevealFileAction.getFileManagerName());
}
}
@@ -1,6 +1,7 @@
// Copyright 2000-2019 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.ide.actions;
import com.intellij.idea.ActionsBundle;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
@@ -33,6 +34,6 @@ public class ShowLogAction extends AnAction implements DumbAware {
@NotNull
public static String getActionName() {
return "Show Log in " + RevealFileAction.getFileManagerName();
return ActionsBundle.message("show.log.in.action.text", RevealFileAction.getFileManagerName());
}
}
@@ -1601,6 +1601,8 @@ action.Console.History.Browse.description=Browse console history
action.RevealIn.description=Highlights the file in platform's file manager
action.RevealIn.name.mac=Reveal in Finder
action.RevealIn.name.other=Show in {0}
show.log.in.action.text=Show Log in {0}
compress.logs.and.show.in.0=Compress Logs and Show in {0}
action.GoToLinkTarget.text=Go to Link Target
action.GoToLinkTarget.description=Opens a target of this symlink in the Project View
@@ -2030,4 +2032,8 @@ action.UpdateRunningApplication.text=Update Running Application
action.TypingLatencyReport.text=Typing Latency Report
action.RetypeFile.text=Retype Current File
action.CompletionQualityStats.text=Completion Quality Statistics
action.ShowControlFlowAction.text=Show Control Flow
action.ShowControlFlowAction.text=Show Control Flow
action.AnalyzePluginStartupPerformance.text=Analyze Plugin Startup Performance
action.GenerateJarAccessLog.text=Generate Jar Access Log
action.TriggerLowMemoryNotification.text=Trigger Low Memory Notification
@@ -1162,12 +1162,12 @@
<add-to-group group-id="Internal"/>
</group>
<action class="com.intellij.diagnostic.PluginStartupCostAction" text="Analyze Plugin Startup Performance">
<action id="AnalyzePluginStartupPerformance" class="com.intellij.diagnostic.AnalyzePluginStartupPerformanceAction">
<add-to-group group-id="HelpDiagnosticTools" anchor="after" relative-to-action="Performance.ActivityMonitor"/>
</action>
<action class="com.intellij.diagnostic.GenerateJarAccessLogAction" internal="true" text="Generate Jar Access Log"/>
<action class="com.intellij.diagnostic.TriggerLowMemoryNotificationAction" internal="true" text="Trigger Low Memory Notification"/>
<action id="GenerateJarAccessLog" class="com.intellij.diagnostic.GenerateJarAccessLogAction" internal="true"/>
<action id="TriggerLowMemoryNotification" class="com.intellij.diagnostic.TriggerLowMemoryNotificationAction" internal="true"/>
<action id="NextWindow" class="com.intellij.openapi.wm.impl.NextWindow"/>
<action id="PreviousWindow" class="com.intellij.openapi.wm.impl.PreviousWindow"/>