|
From: <hu...@us...> - 2008-08-01 18:19:27
|
Revision: 795
http://cishell.svn.sourceforge.net/cishell/?rev=795&view=rev
Author: huangb
Date: 2008-08-01 18:19:19 +0000 (Fri, 01 Aug 2008)
Log Message:
-----------
stick to Java 1.4.2 APIs, otherwise the compilation will fail.
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-07-30 17:33:06 UTC (rev 794)
+++ trunk/clients/gui/org.cishell.reference.gui.menumanager/src/org/cishell/reference/gui/menumanager/menu/MenuAdapter.java 2008-08-01 18:19:19 UTC (rev 795)
@@ -289,14 +289,14 @@
pidToServiceReferenceMap.remove(pid.toLowerCase().trim());
AlgorithmAction action = new AlgorithmAction(ref, bContext, ciContext);
String menuLabel = (String)ref.getProperty(LABEL);
- if(menuName!= null && !menuName.isEmpty()){
+ if(menuName!= null && menuName.trim().length()>0){
//use the name specified in the xml to overwrite the label
action.setText(menuName);
action.setId(getItemID(ref));
parentMenuBar.add(action);
}
else{
- if (menuLabel!= null && !menuLabel.isEmpty()){
+ if (menuLabel!= null && menuLabel.trim().length()>0){
action.setText(menuLabel);
action.setId(getItemID(ref));
parentMenuBar.add(action);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|