* in which case the old menu bar is replaced by this one. The menu bar is
* normally named by the name of the page within which it was declared.
*/
public void setup()
{
XStartupObject so = currentProject.getStartupObject();
XMenuBar menuBar = (XMenuBar)so.getApplicationMenuBar();
if (( menuBar == null ) || menuBar.getName().equals( getName())) {
so.setApplicationMenuBar( this );
currentProject.setObject( "MenuBar", this );
}
else {
int numMenus = this.getMenuCount();
for ( int i = 0; i < numMenus; i++ ) {