|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.ide.controller.ContextAwareLabelUpdater
public class ContextAwareLabelUpdater
LabelUpdater that can resolve macros againts the current Context.
Supported macros are
| Field Summary |
|---|
| Fields inherited from interface oracle.ide.controller.LabelUpdater |
|---|
LABEL_UPDATER_MACROS |
| Constructor Summary | |
|---|---|
ContextAwareLabelUpdater() |
|
| Method Summary | |
|---|---|
protected void |
configureActionMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
protected void |
configureElementMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
protected void |
configureExtraMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
protected void |
configureNodeMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
protected void |
configureProjectMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
protected void |
configureWorkspaceMacros(Context context, IdeAction action, java.lang.String originalLabel, java.util.Map macros) |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextAwareLabelUpdater()
| Method Detail |
|---|
public 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 label
public 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 void setEnabledFormat(java.lang.String format)
LabelUpdatersetEnabledFormat in interface LabelUpdaterformat - the value for enabled formatpublic void setDisabledFormat(java.lang.String format)
LabelUpdatersetDisabledFormat in interface LabelUpdaterformat - the value for disabled format
protected void configureActionMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
protected void configureProjectMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
protected void configureWorkspaceMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
protected void configureElementMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
protected void configureNodeMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
protected void configureExtraMacros(Context context,
IdeAction action,
java.lang.String originalLabel,
java.util.Map macros)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||