diff options
Diffstat (limited to 'python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java')
-rw-r--r-- | python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java b/python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java index 1c1a6635e93d..33169a79d267 100644 --- a/python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java +++ b/python/ide/src/com/jetbrains/python/configuration/PythonPathEditor.java @@ -300,7 +300,7 @@ public class PythonPathEditor extends SdkPathEditor { } - private static class PythonPathListCellRenderer extends ListCellRendererWrapper<VirtualFile> { + private class PythonPathListCellRenderer extends ListCellRendererWrapper<VirtualFile> { private final PathListModel model; public PythonPathListCellRenderer(final ListCellRenderer listCellRenderer, PathListModel model) { @@ -314,7 +314,11 @@ public class PythonPathEditor extends SdkPathEditor { if (suffix.length() > 0) { suffix = " " + suffix; } - setText(value != null ? value.getPresentableUrl() + suffix : ""); + setText(value != null ? getPresentablePath(value) + suffix : ""); } } + + protected String getPresentablePath(VirtualFile value) { + return value.getPresentableUrl(); + } } |