Internal actions: improve presentation

This commit is contained in:
Yann Cébron
2014-11-19 11:51:05 +01:00
parent cb6e0e0749
commit b0408c9354
11 changed files with 26 additions and 34 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -13,11 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* User: anna
* Date: 28-Jun-2007
*/
package com.intellij.internal;
import com.intellij.codeInsight.editorActions.SelectWordUtil;
@@ -64,9 +59,6 @@ import java.util.*;
import java.util.List;
public class GenerateVisitorByHierarchyAction extends AnAction {
public GenerateVisitorByHierarchyAction() {
super("Generate Hierarchy Visitor");
}
public void actionPerformed(AnActionEvent e) {
final Ref<String> visitorNameRef = Ref.create("MyVisitor");
@@ -37,7 +37,7 @@ import java.util.*;
public class ComputeVirtualFileNameStatAction extends AnAction implements DumbAware {
public ComputeVirtualFileNameStatAction() {
super("Compute VF name statistics");
super("Compute VF Name Statistics");
}
public static void main(String[] args) {
@@ -25,7 +25,7 @@ import java.awt.event.InputEvent;
@SuppressWarnings({"HardCodedStringLiteral"})
public class DropAnErrorWithAttachmentsAction extends DumbAwareAction {
public DropAnErrorWithAttachmentsAction() {
super("Drop an error with attachments", "Hold down SHIFT for multiple attachments", null);
super("Drop An Error With Attachments", "Hold down SHIFT for multiple attachments", null);
}
public void actionPerformed(AnActionEvent e) {
@@ -60,10 +60,10 @@ public class ToggleDumbModeAction extends AnAction implements DumbAware {
final Project project = CommonDataKeys.PROJECT.getData(e.getDataContext());
presentation.setEnabled(project != null && myDumb == DumbServiceImpl.getInstance(project).isDumb());
if (myDumb) {
presentation.setText("Exit dumb mode");
presentation.setText("Exit Dumb Mode");
}
else {
presentation.setText("Enter dumb mode");
presentation.setText("Enter Dumb Mode");
}
}
}
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2012 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -65,10 +65,10 @@ public class ToggleLaggingModeAction extends AnAction implements DumbAware {
public void update(final AnActionEvent e) {
final Presentation presentation = e.getPresentation();
if (myLagging) {
presentation.setText("Exit lagging mode");
presentation.setText("Exit Lagging Mode");
}
else {
presentation.setText("Enter lagging mode");
presentation.setText("Enter Lagging Mode");
}
}
}
@@ -62,7 +62,7 @@ public class TopAnomaliesAction extends ActionGroup {
@Override
public void update(AnActionEvent e) {
e.getPresentation().setText("Top " + LIMIT + " component parents");
e.getPresentation().setText("Top " + LIMIT + " Component Parents");
}
@Override
@@ -169,7 +169,7 @@ public class TopAnomaliesAction extends ActionGroup {
};
private static final ResettableAction RESET_THEM_ALL = new ResettableAction("Reset statistics") {
private static final ResettableAction RESET_THEM_ALL = new ResettableAction("Reset Statistics") {
@Override
void reset() {
}
@@ -775,16 +775,16 @@ action.Merge3Files.text=Merge
action.LocalizePlugin.text=Localize Plugin
group.MemoryManagement.text=Memory Management
action.DumpPsiMemoryCaches.text=Dump what is cached in PSI
action.DecodeBytesAction.text=Decode Bytes
action.ReloadProjectAction.text=Reload project
action.DecodeBytesAction.text=Decode Bytes...
action.ReloadProjectAction.text=Reload Project
action.LocalVcs.ShowStatistics.text=Show Local VCS Statistics...
action.LocalVcs.ShowStatistics.description=Show Local VCS statistics
action.LocalVcs.ShowRepHistory.text=Repository History
action.DropAnError.text=Drop an error
action.DropAnOutOfMemoryError.text=Drop an OutOfMemoryError
action.DropAnOutOfPermGenMemoryError.text=Drop an perm gen OutOfMemoryError
action.DumpInspectionDescriptions.text=Dump inspection descriptions
action.DumpIntentionsDescriptions.text=Dump intentions descriptions
action.DropAnError.text=Drop An Error
action.DropAnOutOfMemoryError.text=Drop An OutOfMemoryError
action.DropAnOutOfPermGenMemoryError.text=Drop An PermGen OutOfMemoryError
action.DumpInspectionDescriptions.text=Dump Inspection Descriptions
action.DumpIntentionsDescriptions.text=Dump Intentions Descriptions
action.ShowUserActivities.text=Show Activities
group.WindowMenu.text=_Window
group.ToolWindowsGroup.text=_Tool Windows
@@ -1365,8 +1365,8 @@ group.ToolsBasicGroup.text=Tools Basic Group
group.ToolsBasicGroup.description=Tools Basic Group
group.ToolbarNewElement.text=Toolbar New Element Group
action.NewElementToolbarAction.text=Create New File
action.ShowRegistry.text=Registry
action.UiDebugger.text=UI Debugger
action.ShowRegistry.text=Registry...
action.UiDebugger.text=UI Debugger...
action.ExportTestResults.text=Export Test Results...
action.ExportTestResults.description=Export test results to the file
action.TogglePowerSave.text=Power Save Mode
@@ -613,7 +613,7 @@
</group>
<separator/>
<action internal="true" id="ReloadProjectAction" class="com.intellij.internal.ReloadProjectAction"/>
<action id="DumbMode" internal="true" class="com.intellij.internal.ToggleDumbModeAction" text="Dumb mode"/>
<action id="DumbMode" internal="true" class="com.intellij.internal.ToggleDumbModeAction" text="Dumb Mode"/>
<action id="LaggingMode" internal="true" class="com.intellij.internal.ToggleLaggingModeAction" text="Lagging mode"/>
<separator/>
<group id="Internal.UI" popup="true" text="&amp;UI">
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@ public class DumpCleanHighlightingTestdataAction extends AnAction implements Dum
private static final Logger LOG = Logger.getInstance("#" + DumpCleanHighlightingTestdataAction.class);
public DumpCleanHighlightingTestdataAction() {
super("Dump highlighting-markup-free data");
super("Dump Highlighting-markup-free Data");
}
@Override
+1 -1
View File
@@ -138,7 +138,7 @@
</action>
<action id="GenerateVisitorByHierarchy" internal="true" class="com.intellij.internal.GenerateVisitorByHierarchyAction"
text="Generate Hierarchy Visitor">
text="Generate Hierarchy Visitor...">
<add-to-group group-id="Internal"/>
</action>
+3 -3
View File
@@ -123,7 +123,7 @@
<action id="DumpConfigurationTypes" internal="true" class="com.intellij.internal.DumpConfigurationTypesAction"/>
<action id="DumpDirectoryIndex" internal="true" class="com.intellij.internal.DumpDirectoryInfoAction"/>
<action id="ScanSourceCommentsAction" internal="true" class="com.intellij.tools.ScanSourceCommentsAction"
text="Dump all comments in the project"/>
text="Dump All Comments In Project"/>
</group>
<separator/>
@@ -132,8 +132,8 @@
<action id="MarkFileDirty" internal="true" class="com.intellij.openapi.vcs.changes.actions.MarkFileDirtyAction" text="Mark File Dirty"/>
<separator/>
<action id="CheckVfsSanity" internal="true" class="com.intellij.openapi.vfs.newvfs.persistent.CheckSanityAction" text="Check VFS sanity"/>
<action id="LoadAllContent" internal="true" class="com.intellij.internal.LoadAllContentsAction" text="Load all files content"/>
<action id="LoadAllVFSContent" internal="true" class="com.intellij.internal.LoadAllVfsStoredContentsAction" text="Load all VFS stored files content"/>
<action id="LoadAllContent" internal="true" class="com.intellij.internal.LoadAllContentsAction" text="Load All Files Content"/>
<action id="LoadAllVFSContent" internal="true" class="com.intellij.internal.LoadAllVfsStoredContentsAction" text="Load All VFS Stored Files Content"/>
<action id="ComputeVFStatistics" internal="true" class="com.intellij.internal.ComputeVirtualFileNameStatAction"/>
<action id="DumpVfsInfoForExcludedFiles" internal="true" class="com.intellij.internal.DumpVfsInfoForExcludedFilesAction"/>
<separator/>