// File menu
if ("close".equals(cmd)) dispose();
// Edit menu
else if ("cut".equals(cmd))
designer.performCommand(new FPCutCommand(report, designer, tree,
selectedNode));
// Field menu
else if ("new_formula".equals(cmd)) newFormula();
else if ("edit_formula".equals(cmd)) editSelection();