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.
Deprecation of org.openide.filesystems.FileObject - String getPackageName(char) affects : org.netbeans.core.PackageChildren.1.void run() org.netbeans.core.PackageChildren.Node[] createNodes(Object) Should we deprecate places - packages?
Places.Nodes.packages() should be deprecated. The method doesn't have a sense in open API context. Moreover nobody uses the method in current NB dev build. It seems there should be considered if other Places methods (or interfaces or even entire Places) could be deprecated too. Notion of some "interesting" things in IDE sounds strange in open API. Going to look at it.
Yarda, say something: packages method should be deprecated in any way. Question is if it should still return the PackageNode, which won't be probably working correctly or just return some empty node, so we could remove the PackageNode completelly. I vote for the second choice, remember it is not used now anyway. ------------------------------------------------------------ BTW I guess Places should be deprecated, but that's another issue. Nodes are used almost in core only, also in some property editors(??) in openide and scripting module, but that's just a "mirroring". I didn't check at the use of folders, but it is probably the same. Anyway that's not important. I guess the Places could be replaced by naming funcionality. Depends how far the naming is implemented.
I'm going to deprecate the packages method and also move the Packages and PackageChildren to objectbrowser. Obejctbrowser needs to deal with it separately -> issue #27707.
Fixed in [trunk] openide/../Places.java 1.33 core/../NbPlaces.java 1.60 Packages.java - removed PackageChildren - removed objectbrowser/../Packages.java 1.1 - added PackageChildren 1.1 - added ClassBrowserHierarchyTranslator.java 1.37 manifest.mf 1.40
Cool and capabilities testing is there too. That means that if the root filesystem for all drives does not have any of the common capability (EXEC, COMPILE, DOC, DEBUG) then it will not be shown in the list of packages. That is very good, but Radek please do not forget to remove all the capabilities.