submenu.add(new ToggleCreateTargetItem(editor, mxResources.get("createTarget")));
submenu.add(new TogglePropertyItem(graph, mxResources.get("disconnectOnMove"), "DisconnectOnMove"));
submenu.addSeparator();
submenu.add(editor.bind(mxResources.get("connectMode"), new ToggleConnectModeAction()));
submenu = (JMenu) menu.add(new JMenu(mxResources.get("validation")));
submenu.add(new TogglePropertyItem(graph, mxResources.get("allowDanglingEdges"), "AllowDanglingEdges"));
submenu.add(new TogglePropertyItem(graph, mxResources.get("cloneInvalidEdges"), "CloneInvalidEdges"));