Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

plugin-list-parser: Make sure all menus are sorted

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information...
commit 91ec2d7bfc80d992ee23a8dc6adf761cd4783457 1 parent 0f7e09a
@dscho dscho authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 bin/plugin-list-parser.py
View
6 bin/plugin-list-parser.py 100755 → 100644
@@ -19,7 +19,7 @@
It fetches information on menu item position and files called by
letting fiji.User_Plugins parse the jars.
-J.Y. Tinevez - 2009, J. Schindelin - 2010
+J.Y. Tinevez - 2009, J. Schindelin - 2010,2012
"""
def walktree(top = ".", depthfirst = True):
@@ -59,7 +59,7 @@ def getTree(menuPath):
parentMenuPath, dummy = splitLast(menuPath, '>', '')
parentTree = getTree(parentMenuPath)
parentTree.append([menuPath, result])
- allElements[menuPath] = result
+ allElements.put(menuPath, result)
return result
def appendPlugin(menuPath, name, class_name, package_name, type, path = None):
@@ -105,6 +105,8 @@ def treeToString(tree, level=1):
global firstNode
result = ''
+ tree.sort()
+
# first handle the commands
for element in tree:
if type(element) is dict:
Please sign in to comment.
Something went wrong with that request. Please try again.