Index: DataModule.java =================================================================== --- DataModule.java (revision 49646) +++ DataModule.java (working copy) @@ -182,9 +182,13 @@ type.setName("broken_type"); } DataUtil.registerNodeType(type); - // keep first type with a rootPath + // keep first top level type with a rootPath if(!allRootPaths.contains(type.getRootPath())) { - allRootPaths.add(type.getRootPath()); + if (type.getLevel() <= 1) { + // Only the top level types should be added + // if a child type is examined first, menu is not created + allRootPaths.add(type.getRootPath()); + } // create rootPath and a menu entry for each if necessary createRootPath(type); updateDataMenu(type);