Java NetBeans:对子文件夹执行上下文感知操作?

Java NetBeans:对子文件夹执行上下文感知操作?,java,netbeans,plugins,rcp,Java,Netbeans,Plugins,Rcp,我正在创建一个NetBeans插件,希望在右键单击Java文件时,我声明的Actions组合出现在它们自己的子菜单中。我可以让操作出现在关联菜单中,但是我无法将其放入子菜单中。我当前的操作注释如下所示 @ActionID( category = "Source", id = "net.myproj.actions.DoMyAction" ) @ActionRegistration( displayName = "#CTL_DoMyAction" )

我正在创建一个NetBeans插件,希望在右键单击Java文件时,我声明的
Action
s组合出现在它们自己的子菜单中。我可以让
操作
出现在关联菜单中,但是我无法将其放入子菜单中。我当前的
操作
注释如下所示

@ActionID(
        category = "Source",
        id = "net.myproj.actions.DoMyAction"
)
@ActionRegistration(
        displayName = "#CTL_DoMyAction"
)
@ActionReferences({
    @ActionReference(path = "Loaders/text/x-java/Actions", position = 2950, separatorBefore = 2925, separatorAfter = 2975),
    @ActionReference(path = "Editors/text/x-java/Popup", position = 2950, separatorBefore = 2925, separatorAfter = 2975)
})
@Messages("CTL_DoMyAction=Foo...")
我已经尝试在
加载程序/text/x-java/Actions
下添加另一个路径,但这不起作用。与
编辑器/text/x-java/Popup
相同。是否有一种方法可以将我的
操作
分组到各自的子菜单中