|
From: <hu...@us...> - 2008-08-22 21:11:44
|
Revision: 800
http://cishell.svn.sourceforge.net/cishell/?rev=800&view=rev
Author: huangb
Date: 2008-08-22 21:11:42 +0000 (Fri, 22 Aug 2008)
Log Message:
-----------
Fix the bug that the menu didn't show up in most windows machines. Use URI to get a file path seems not work. Switch back to feed a String with the full file path to validate file location. Also System.getProperty("osgi.configuration.area") return the nwb application location starting with "file:/C:/...", have to trim first six letters. However, some Windows machine does work fine such as Bonnie's laptop.
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-08-15 19:00:54 UTC (rev 799)
+++ trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-08-22 21:11:42 UTC (rev 800)
@@ -121,9 +121,10 @@
listener = new ContextListener();
bContext.addServiceListener(listener, filter);
preprocessServiceBundles();
- URI fullpath=URI.create(System.getProperty("osgi.configuration.area") + DEFAULT_MENU_FILE_NAME);
+ String app_location = System.getProperty("osgi.configuration.area");
+ String fullpath = app_location.substring(6)+ DEFAULT_MENU_FILE_NAME;
if (new File(fullpath).exists()){
- createMenuFromXML(fullpath.toString());
+ createMenuFromXML(fullpath);
processLeftServiceBundles();
}else{
initializeMenu();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|