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.
There is currently no way to declaratively register actions globally, for specific modes or specific (foreign) TopComponents. The ones already there appears to originate from org.netbeans.core.windows.actions.ActionUtils and cannot be readily supplemented.
It has been suggested on dev@openide that there be such folders for registering actions as per the usual practice using layer files. Something along the line of: # Global actions Actions/ # Actions for all and any TopComponent tabs Actions/TopComponentTabs/ # Actions for specific TopComponent tab Actions/TopComponentTabs/com.some.path.TopComponentClassName/ # Actions for TopComponent tabs under a specific Mode Actions/TopComponentTabs/${modeName}/ # Actions for specific TopComponent tab under a specific Mode Actions/TopComponentTabs/${modeName}/com.some.path.TopComponentClassName/
I'd also suggest to add new method String TopComponent.getActionsPath() rather than using class name of the component.