| Generate menu from xml-file.
Translation of resources is mostly done in
AbstractColumbaAction ,
for JMenuItem, JCheckboxMenuItem, JRadioButtonMenuItem. But, the menu names,
visible on the menubar and the popup menu name are translated here. This is
achieved by passing a
IFrameMediator instance, and using its
getString() method to pass along the translation to the
appropriate resourceloader.
Example:
ExtendablePopupMenu menu = new MenuXMLDecoder(frameController)
.createPopupMenu("org/columba/core/contextmenu.xml");
author: fdietz |