merge text conflict: better file paths presentation in a dialog

This commit is contained in:
irengrig
2012-07-27 17:24:06 +04:00
parent f43beb3368
commit 6a08f3183c
@@ -356,7 +356,11 @@ public class MultipleFileMergeDialog extends DialogWrapper {
protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {
VirtualFile vf = (VirtualFile)value;
setIcon(VirtualFilePresentation.getIcon(vf));
append(FileUtil.toSystemDependentName(vf.getPresentableUrl()), SimpleTextAttributes.REGULAR_ATTRIBUTES);
append(vf.getName(), SimpleTextAttributes.REGULAR_ATTRIBUTES);
final VirtualFile parent = vf.getParent();
if (parent != null) {
append(" (" + FileUtil.toSystemDependentName(parent.getPresentableUrl()) + ")", SimpleTextAttributes.GRAYED_ATTRIBUTES);
}
}
}
}