A correct name for settings text padding. Allow to set alignment of a text fragment.
[idea/community.git] / platform / dvcs-impl / src / com / intellij / dvcs / push / ui / RepositoryNode.java
index 26097d26e035023bd987015367f73bc3275f9c32..54c7d56d1c0ac5604e2bca3eb5074ac598f12757 100644 (file)
@@ -83,20 +83,20 @@ public class RepositoryNode extends CheckedTreeNode implements EditableTreeNode,
       repoFixedWidth += checkBoxWidth;
       if (myCheckBoxHGap > 0) {
         renderer.append("");
-        renderer.appendFixedTextFragmentWidth(checkBoxWidth + renderer.getIconTextGap() + borderHOffset);
+        renderer.appendTextPadding(checkBoxWidth + renderer.getIconTextGap() + borderHOffset);
       }
     }
     else {
       if (myCheckBoxHGap <= 0) {
         renderer.append("");
-        renderer.appendFixedTextFragmentWidth(myRepositoryPanel.calculateRendererShiftH(renderer));
+        renderer.appendTextPadding(myRepositoryPanel.calculateRendererShiftH(renderer));
       }
     }
     SimpleTextAttributes repositoryDetailsTextAttributes = PushLogTreeUtil
       .addTransparencyIfNeeded(SimpleTextAttributes.REGULAR_ATTRIBUTES, isChecked());
 
     renderer.append(getRepoName(renderer, repoFixedWidth), repositoryDetailsTextAttributes);
-    renderer.appendFixedTextFragmentWidth(repoFixedWidth);
+    renderer.appendTextPadding(repoFixedWidth);
     renderer.append(myRepositoryPanel.getSourceName(), repositoryDetailsTextAttributes);
     renderer.append(myRepositoryPanel.getArrow(), repositoryDetailsTextAttributes);
     PushTargetPanel pushTargetPanel = myRepositoryPanel.getTargetPanel();