public static JMenuItem loadMenuItem(String name, boolean setMnemonic)
public static JMenuItem loadMenuItem(String name)
	public static JMenuItem loadMenuItem(String name, boolean setMnemonic)	{		EditAction action = jEdit.getAction(name);		String label = (action == null ?			jEdit.getProperty(name + ".label")			: action.getLabel());		if(label == null)			label = name;		char mnemonic;		int index = label.indexOf('$');		if(index != -1 && label.length() - index > 1)		{			mnemonic = Character.toLowerCase(label.charAt(index + 1));			label = label.substring(0,index).concat(label.substring(++index));		}		else			mnemonic = '\0';		JMenuItem mi;		if(action != null && action.isToggle())			mi = new EnhancedCheckBoxMenuItem(label,action);		else			mi = new EnhancedMenuItem(label,action);		if(!OperatingSystem.isMacOS() && setMnemonic && mnemonic != '\0')			mi.setMnemonic(mnemonic);		return mi;	} //}}}