populateShapeMenu(menu, editor);
// Creates the diagram menu
menu = add(new JMenu(mxResources.get("diagram")));
menu.add(new ToggleOutlineItem(editor, mxResources.get("outline")));
menu.addSeparator();
submenu = (JMenu) menu.add(new JMenu(mxResources.get("background")));