[vcs-log] better descriptions for IntelliSort
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Sat, 12 Nov 2016 18:46:39 +0000 (21:46 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Sat, 12 Nov 2016 18:46:39 +0000 (21:46 +0300)
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/IntelliSortChooserToggleAction.java

index 79ee646cb87de2142147553f64261b1076733604..bb01cf50dfd978e0e1e54afeeb5bb41798da9891 100644 (file)
@@ -55,11 +55,12 @@ public class IntelliSortChooserToggleAction extends ToggleAction implements Dumb
 
     if (logUI != null) {
       boolean off = logUI.getBekType() == PermanentGraph.SortType.Normal;
-      e.getPresentation().setText("IntelliSort is " + (off ? "Off" : "On"));
-      e.getPresentation().setDescription("Turn IntelliSort " + (off ? "on" : "off") + " (" +
-                                         (off
-                                          ? PermanentGraph.SortType.Bek.getDescription().toLowerCase()
-                                          : PermanentGraph.SortType.Normal.getDescription().toLowerCase()) + ").");
+      String description = "Turn IntelliSort " + (off ? "on" : "off") + ": " +
+                           (off
+                            ? PermanentGraph.SortType.Bek.getDescription().toLowerCase()
+                            : PermanentGraph.SortType.Normal.getDescription().toLowerCase()) + ".";
+      e.getPresentation().setDescription(description);
+      e.getPresentation().setText(description);
     }
     else {
       e.getPresentation().setText(DEFAULT_TEXT);