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