public interface LabelUpdater
LabelUpdater is responsible for updating an action's label.| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
LABEL_UPDATER_MACROS  | 
| Modifier and Type | Method and Description | 
|---|---|
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.  | 
void | 
setDisabledFormat(java.lang.String format)
Sets the value for the disabled format. 
 | 
void | 
setEnabledFormat(java.lang.String format)
Sets the value for the enabled format. 
 | 
static final java.lang.String LABEL_UPDATER_MACROS
java.lang.String labelWhenEnabled(Context context, IdeAction action, java.lang.String originalLabel)
context - the current contextaction - the action to be updatedoriginalLabel - the action's first labeljava.lang.String labelWhenDisabled(Context context, IdeAction action, java.lang.String originalLabel)
context - the current contextaction - the action to be updatedoriginalLabel - the action's first labelvoid setEnabledFormat(java.lang.String format)
format - the value for enabled formatvoid setDisabledFormat(java.lang.String format)
format - the value for disabled format