Example→Show resources
. This shows all of the resources
loaded into the ExampleIdv.
<menuitem action="jython:idv.helloWorld();" label="Hello World"/>
Example→Hello World
public void helloWorld() { System.err.println("Hello World"); }The method needs to be public.
<action id="example.helloworld" image="/ucar/unidata/apps/example/resources/HelloWorld.gif" description="Call hello world" action="jython:idv.helloWorld();"/>
<menuitem action="action:example.helloworld" label="Hello World from action"/> <separator/>
To:<resources name="idv.resource.menubar"> </resources>
The loadmore tells the IDV not to use the system resources.<resources name="idv.resource.menubar" loadmore="false"> <resource location="/ucar/unidata/apps/example/defaultmenu.xml"/> </resources>