} else {
item = waitItem(oper,
(JPopupMenu)oper.getSource(),
chooser, 0);
}
JMenuItemOperator itemOper;
if(item instanceof JMenu) {
itemOper = new JMenuOperator((JMenu)item);
} else if(item instanceof JMenuItem) {
itemOper = new JMenuItemOperator(item);
} else {
return(null);
}
itemOper.copyEnvironment(oper);
return(push(itemOper, null, (oper instanceof JMenuBarOperator) ? ((JMenuBar)oper.getSource()) : null,
chooser, 1, true));
} else {
return(push(oper, null, null, chooser, 0, true));
}