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.
Not sure if it already disables the Next button when you select a read-only folder on panel #2, but anyway read-only filesystems should be excluded entirely from this panel of the wizard since there is no way you can create a new file in them.
Target milestone -> 3.3
Target milestone -> 3.3.1.
Please Jesse how to filter read only filesystems from view? I found org.openide.loaders.TemplateWizard2.createPackageNode().
Looks like ExCh.createNodes is where to look.... it could check for ((Node)key).getCookie(DataFolder.class) being the root folder of a r/o FS, and if so, return new Node[0]. Or maybe TW2.acceptDataObject could return false for r/o FSs, that would probably be easiest.
I tried both and both work. The only difference is that acceptDataObject() is called for all nodes as tree is expanded and ExCh.createNodes() is called just for root and its children. Solution in acceptDataObject() is simpler because it means just adding one additional check because filesystem is alreadu used there. I will attach diff for this solution.
Created attachment 5624 [details] patch
Looks right to me...
Patch is integrated to main trunk. Modified: org/openide/loaders/TemplateWizard2.java r.1.41
Marek, I have tried it on [nb_dev](20030714) and it isn't fixed.
Reassigning to new owner of wizards.
I think it's already solved, an user is notified be message on read-only filesystem and Next/Finish buttons are disabled. Also fixed issue 32191 make sure that New actions are disabled in popup menu.
Anyway for D the issue makes no sense - there are no user-visible filesystems.