A correct name for settings text padding. Allow to set alignment of a text fragment.
[idea/community.git] / platform / vcs-impl / src / com / intellij / openapi / vcs / changes / committed / CommittedChangeListRenderer.java
index 0343651bfc691090ec44a5249f908a790516c6ed..eae634fe65a657c1a04d0aa5752ce6c897510246 100644 (file)
@@ -146,14 +146,14 @@ public class CommittedChangeListRenderer extends ColoredTreeCellRenderer {
 
     if (description.isEmpty() && !truncated) {
       append(VcsBundle.message("committed.changes.empty.comment"), SimpleTextAttributes.GRAYED_ATTRIBUTES);
-      appendFixedTextFragmentWidth(descMaxWidth);
+      appendTextPadding(descMaxWidth);
     }
     else if (descMaxWidth < 0) {
       myRenderer.appendTextWithLinks(description);
     }
     else if (descWidth < descMaxWidth && !truncated) {
       myRenderer.appendTextWithLinks(description);
-      appendFixedTextFragmentWidth(descMaxWidth);
+      appendTextPadding(descMaxWidth);
     }
     else {
       final String moreMarker = VcsBundle.message("changes.browser.details.marker");
@@ -168,7 +168,7 @@ public class CommittedChangeListRenderer extends ColoredTreeCellRenderer {
         append(moreMarker, SimpleTextAttributes.LINK_ATTRIBUTES, new CommittedChangesTreeBrowser.MoreLauncher(myProject, changeList));
       }
       // align value is for the latest added piece
-      appendFixedTextFragmentWidth(descMaxWidth);
+      appendTextPadding(descMaxWidth);
     }
 
     append(changeList.getCommitterName(), SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);