Utilities.actionsForPath() question

Jerome Lelasseux <[email protected]> Thu, 2 Oct 2025 21:17:20 +0000 (UTC)
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
Hi, 
I have an action with a no-arg constructor :
@ActionID(category = "jjazz", id = "myactionid")
@ActionRegistration(displayName = "not_used", lazy = false)
@ActionReference(path = "Actions/popupmenu", position = 100)public class MyAction extends AbstractAction........
In my code an instance is first created using Actions.forId("jjazz", "myactionid") 
I also want to use MyAction in a popup menu. I use Utilities.actionsForPath("Actions/popupmenu") to retrieve the actions before creating the popupmenu. But actionsForPath() creates a new instance of MyAction. Why ?   
 I'm pretty sure in other cases it reuses the initial instance. Tried to debug but it does not work inside actionsForPath() -don't know why...
Any tip welcome, thanks.
Jerome