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 Projects view Paste action is always disabled on a package but copy action is enabled. On the other hand the paste action gets enabled when you copy a folder from Files view. It is a little bit inconsistens. Steps to follow: 1) - open a java project in Projects view - on a package click Copy item in context menu - open context menu on any package but paste is always disabled 2) - in Files view click Copy item on a folder - go to the projects view and open context menu on a package => Paste item is enabled Build 20041018-0707, JDK1.5.0, WindowsXP.
Up to Jano to specify.
Also in the second case the Paste action should be disabled. As we present the packages as a list, it shouldn't be possible to paste folder into a package.
Jano please make sure the UI spec says this explicitly.
There is no way how to distinguish the DataObject from the DataFloder in the Transferable, except of calling getTransferData () which is not cheap operation, calling getTransferable () in the createPasteTypes () is not good idea, since it is called when the pop up menu is created. The folder in the physical view is treated as any other physical resource (not as a package).
OK.