Using annotations for actions and toolbar positions
"mccorb" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
I have an annotation for a netbeans action that is similar to:
Code:
@ActionID(category = "Projects", id = "com.myapp.actions.ProjectOpenAction")
@ActionRegistration(iconBase = "com/myapp/resources/icons/openProject.png", displayName = "#CTL_ProjectOpenAction")
@ActionReferences({
@ActionReference(path="Toolbars/Projects", position = 4),
@ActionReference(path="Menu/Projects", position=6)
})
@Messages("CTL_ProjectOpenAction=Open Project File...")
This all works however, on the action reference for the toolbar I specify position 4 which gives the relative position within the 'Projects' toolbar for this action.
How can I specify the position of the Projects toolbar with respect to the other toolbars that are created? Do I have to go back to the layer.xml file to define an empty toolbar or can I do it using annotations?
Of course the same question would apply to the Project menu also.
Thanks