Revision: 18038
          http://sourceforge.net/p/gate/code/18038
Author:   markagreenwood
Date:     2014-05-29 13:29:30 +0000 (Thu, 29 May 2014)
Log Message:
-----------
choose the menu type based upon the selected key in the action

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/MainFrame.java

Modified: gate/trunk/src/main/gate/gui/MainFrame.java
===================================================================
--- gate/trunk/src/main/gate/gui/MainFrame.java 2014-05-29 13:02:48 UTC (rev 
18037)
+++ gate/trunk/src/main/gate/gui/MainFrame.java 2014-05-29 13:29:30 UTC (rev 
18038)
@@ -4459,8 +4459,8 @@
         }
         pos++;
       }
-      // finally, add the menu item and return it
-      return menuToUse.insert(new XJMenuItem(a, this.listener), pos);
+      // finally, add the menu item and return it    
+      return menuToUse.insert(a.getValue(Action.SELECTED_KEY) == null ? new 
JMenuItem(a) : new JCheckBoxMenuItem(a), pos);
     }
 
     /**

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to