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.
Refactoring modules needs to register actions on nodes in projects view (e.g. Refactor action on package nodes). These actions should not be available on nodes in other views (Files view). Currently we make this work using an ugly hack (inspecting the active component). However there is a bug filed against refactoring module (issue 49820) suggesting that we should somehow plug this actions into the projects view only. For that we need an API.
Perhaps a job for Looks. There is nothing special about package nodes as opposed to e.g. Java source nodes that would deserve a special API.
Issue #52271 might be appropriate, TBD.
This issue blocks issue 49820, which is a DEFECT. Accordingly this issue should be DEFECT as well. Or should be both issues ENHANCEMENTS?
Who decided about a rule that defects can not be blocked by enhancements? Is there any such rule?
No there is not such rule. But it sounds logically to me. If some bug cannot be fixed due to lack of an API, it means (IMO) that lack of API itself is a bug.
Milan is now an owner of the PackageView
Issue #49820 was closed as INVALID, closing this issue as well. It there is still the requirement please reopen and describe new usecase. Thanks