This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
In SimpleTargetChooserPanelGUI, field "Created File" (or "Created Folder") is filled via appending file relative path to what is returned by FileUtil.getFileDisplayName(). If the file system is not file-based, FileUtil.getFileDisplayName() returns string like "/home/user/folder in user@host". And it's FileUtil.getFileDisplayName() who formats it this way ("{0} in {1}"). So if I want to create a file "my_file" in folder "my_folder", this field shows "/home/user/folder in user@host/my_folder/my_file" - which is definitely incorrect
For remote file system, I would propose the following notation: user@host:/home/user/folder/my_folder/my_file or user@host:22:/home/user/folder/my_folder/my_file Such notation is used in standard Unix utilities like scp. The question is whether to fix it just in SimpleTargetChooserPanelGUI or to introduce a new method in FileUtil like public static String getFileDisplayName(FileObject baseFo, String relativePath)
Another reasonable approach would be to keep "${path} in ${filesystem}" format, but just to append the relative path to the base file object path. I'll provide a fix that does this shortly.
Created attachment 154376 [details] The proposed fix
The fix I attached needs the fix to the issue 248653 to be applied first (since it changes the same file and, moreover, uses field introduced in the previous patch)
The issue 248653 this one depends on is fixed now. Could you please have a look at the proposed fix? If you agree, I'll integrate it.
thanks, feel free to integrate
was this fixed? has it to be fixed?