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.
Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15 System: Linux version 2.6.27-9-generic running on i386; UTF-8; cs_CZ (nb) Observed: I have Enterprise Application and I can't delete empty packages in web and ejb modules. I must switch from project tab into files tab and delete it there.
I'm not able to reproduce described behavior. Are those packages under Source Packages node? Are they really empty? Are you able to reproduce it in newly created projects? Thanks for more info.
I'm sorry. I discover, that the project must be in some Subversion repository. So, steps to reproduce... 1, for example checkout some project from SVN repository 2, add empty package and commit it 3, after try to delete this package -> it isn't possible in project view (maybe because of .svn directory, but it should be possible to delete it)
Yes, the package is not deleted because .svn folder exists there. It is possible to delete the package from files view. So, java refactoring should probably delete also hidden/ignored folders. Related code is here refactoring.java\src\org\netbeans\modules\refactoring\java\ui\SafeDeleteUI.java#deletePackage()
*** Issue 163747 has been marked as a duplicate of this issue. ***
*** Issue 174064 has been marked as a duplicate of this issue. ***
The FIX outlined here is a WORKAROUND. A proper solution is needed.
Yes, I agree with fommil. Click on the "Files" tab and delete it there isn't good solutions. Many users have these troubles with deleting and they don't know about this workaround or it's uncomfortable for common work with ide. If are using regularly SCMs, you hit this issue really often. Please couldn't you remove hidden folder for deleting in projects tab as well?
OK, it sounds reasonable. I will try to fix this using VisibilityQuery. I cannot delete hidden files/folders directly as the refactoring module cannot interpret them properly but ignoring invisible content and deleting the package's DataObject in such a case should help. It is the DataObject owner responsibility to handle delete in the file system layer properly.
Thanks, any improvement here in the behaviour will be welcome.
fixed as jet-main #ecfb4b23eb8f
two more similar scenarios: 1.) rename a package in the projects view -> new folder is created but the old one isn't removed 2.) multiselect a few packages and delete -> folders aren't deleted Both cases seem to have the same reason as originally reported
Changeset: http://hg.netbeans.org/jet-main/rev/bce946de3231 Author: Jan Becicka <jbecicka@netbeans.org> Date: 2010-10-13 14:02 Message: Issue #156529 - I can't delete empty package in project tab