|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
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)
LabelUpdater
labelWhenEnabled
in interface LabelUpdater
context
- the current contextaction
- the action to be updatedoriginalLabel
- the action's first labelpublic java.lang.String labelWhenDisabled(Context context, IdeAction action, java.lang.String originalLabel)
LabelUpdater
labelWhenDisabled
in interface LabelUpdater
context
- the current contextaction
- the action to be updatedoriginalLabel
- the action's first labelpublic void setEnabledFormat(java.lang.String format)
LabelUpdater
setEnabledFormat
in interface LabelUpdater
format
- the value for enabled formatpublic void setDisabledFormat(java.lang.String format)
LabelUpdater
setDisabledFormat
in interface LabelUpdater
format
- the value for disabled formatprotected 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.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |