arg = name.substring(index+1); actionName = name.substring(0,index);
Macros.Macro macro = Macros.getMacro(name.substring(11)); label = macro.name; int index = label.lastIndexOf('/'); label = label.substring(index + 1) .replace('_',' '); action = macro.action;
	public MenuItemModel(String name)	{		this.name = name;		String actionName;		int index = name.indexOf('@');		if(index != -1)		{			arg = name.substring(index+1);			actionName = name.substring(0,index);		}		else		{			arg = null;			actionName = name;			action = jEdit.getAction(name);		}		action = jEdit.getAction(actionName);		label = jEdit.getProperty(name.concat(".label"));		if(label == null)			label = name;		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';		// stuff for createButton():		String iconName = jEdit.getProperty(name + ".icon");		if(iconName != null)		{			icon = GUIUtilities.loadIcon(iconName);			toolTip = label;			String shortcut = jEdit.getProperty(name + ".shortcut");			if(shortcut != null)				toolTip = toolTip + " (" + shortcut + ")";		}	}