public abstract class MenuAwareLabelUpdater extends java.lang.Object implements LabelUpdater
LABEL_UPDATER_MACROS| Constructor and Description | 
|---|
MenuAwareLabelUpdater(java.lang.String menuId)
Creates a new  
MenuAwareLabelUpdater instance. | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract java.lang.String | 
disabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
Gets the label to use for the action when it appears on the menu supplied in the constructor. 
 | 
protected abstract java.lang.String | 
enabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
Get the label to use for the disabled action when it appears on the menu supplied in the constructor. 
 | 
java.lang.String | 
labelWhenDisabled(Context context, IdeAction action, java.lang.String originalLabel)
Returns the action's label when it is disabled. 
If null then the action will be left unchanged.  | 
java.lang.String | 
labelWhenEnabled(Context context, IdeAction action, java.lang.String originalLabel)
Returns the action's label when it is enabled. 
If null then the action will be left unchanged.  | 
protected boolean | 
matchMenu(java.util.EventObject event)  | 
void | 
setDisabledFormat(java.lang.String format)
Not implemented. 
 | 
void | 
setEnabledFormat(java.lang.String format)
Not implemented. 
 | 
public MenuAwareLabelUpdater(java.lang.String menuId)
MenuAwareLabelUpdater instance. The supplied menuId is used identify the custom menu.menuId - the menu IDpublic final java.lang.String labelWhenDisabled(Context context, IdeAction action, java.lang.String originalLabel)
LabelUpdaterlabelWhenDisabled in interface LabelUpdatercontext - the current contextaction - the action to be updatedoriginalLabel - the action's first labelpublic final java.lang.String labelWhenEnabled(Context context, IdeAction action, java.lang.String originalLabel)
LabelUpdaterlabelWhenEnabled in interface LabelUpdatercontext - the current contextaction - the action to be updatedoriginalLabel - the action's first labelprotected abstract java.lang.String disabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
action - an actionprotected abstract java.lang.String enabledMenuSpecificLabel(IdeAction action, java.lang.String originalLabel)
action - an actionpublic final void setDisabledFormat(java.lang.String format)
setDisabledFormat in interface LabelUpdaterformat - the value for disabled formatpublic final void setEnabledFormat(java.lang.String format)
setEnabledFormat in interface LabelUpdaterformat - the value for enabled formatprotected boolean matchMenu(java.util.EventObject event)