|
From: <hu...@us...> - 2008-09-04 20:21:56
|
Revision: 804
http://cishell.svn.sourceforge.net/cishell/?rev=804&view=rev
Author: huangb
Date: 2008-09-04 20:21:53 +0000 (Thu, 04 Sep 2008)
Log Message:
-----------
processLeftServiceBundles() is the followup function after createMenuFromXML(). Basically, it looks for any bundles that specifies the menu_path and label but not defined in the default_menu.xml file, and tries to add them to the menu.
If can not find {nwb_installation_dir}/configuration/default_menu.xml, call initializeMenu(), which will add algorithms to the menu based on menu_path and label specified in the properties files, but there's no control on the order of the algorithm list under each top menu.
Modified Paths:
--------------
trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java
Modified: trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java
===================================================================
--- trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-09-04 17:56:05 UTC (rev 803)
+++ trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-09-04 20:21:53 UTC (rev 804)
@@ -162,12 +162,12 @@
System.out.println(">>>URI = " + configurationDirectoryURI.toString());
System.out.println(">>> file at URI = " + new File(configurationDirectoryURI).toString());
if (new File(configurationDirectoryURI).exists()) {
- System.out.println("config.ini Exists!");
- String fullpath = app_location + DEFAULT_MENU_FILE_NAME;
- createMenuFromXML(fullpath);
+ System.out.println(">>>config.ini Exists!");
+ createMenuFromXML(fileFullPath);
+ processLeftServiceBundles();
} else {
System.out.println("config.ini does not exist... Reverting to backup plan");
- processLeftServiceBundles();
+ initializeMenu();
}
Display.getDefault().asyncExec(updateAction);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|