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.
On the Windows platform, it is common to create virtual volumes (e.g. Z:) for interesting places that map to physical disks (C:\development\project1) or to interesting network places (\\buildmachine\commonlibs). It should be possible to add such a virtual volume to Favorites. Currently it is only possible to add a subdirectory of a volume root, not the root itself - the current chooser dialog does not allow that.
Standard JFileChooser is used. You can write "/" to "File Name" text box. But "C:\" does not work now because DataShadow does not support it. (It tries to create shadow file "C:.shadow" but it is invalid. Anyway Favorites is just to avoid creating of virtual disk like "Z:" to eg. "C:\data\data\data". You can directly add "C:\data\data\data". I do not think it is really important to support adding disks to Favorites. Discuss with Jano and update spec if this is really necessary. Anyway I file separate issue to handle invalid states when user writes invalid input to "File Name" field.
Minority problem from my point of view. Frankly I welcome this lack of behaviour.(I pushed to get rid of disk roots). Workaround: If Z: is mapped into c:\myWork\projects then easily add c:\myWork\projects instead of Z:. Not defined in UI spec. and has problems in technical background. I suggest WONTFIX (or future milestone and priority P4).
> Workaround: > If Z: is mapped into c:\myWork\projects then easily add > c:\myWork\projects instead of Z:. This is not an option if Z: is a network drive. I am ok with P4 (downgrading), but not with WONTFIX.
If you need access \\mycompany.com\shared\projects\myide then don't map Z:==\\mycompany.com\shared\projects\myide\ but Z:==\\mycompany.com\shared\projects\ and then add to favourities Z:\myide\. So, there is option even for net drives but maybe awkward a little.
It might not work due to access rights.
I agree there are various workarounds and and this use case may not be too frequent, but my point is still that this is a bug.
From user point of view it should be possible. It probably is a rare case, though. Is there a special spec needed for this other than saying that the filechooser should allow the user to select also the disk roots?
It works now as DataShadow supports it. But you must enter file name to "File Name" text box manually eg:"C:\" or "e:\". Just clicking on disk in list box does not work as it works for regular folders/files.
closed