mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
merge text conflict: better file paths presentation in a dialog
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user