public static class EditorResourceStatus.Action
extends java.lang.Object
Defines an action for an EditorResourceStatus
. An action is defined by an id and a
label, which are used in the user interface to identify and render the action, respectively.
Actions are created using EditorResourceStatus.Builder.addAction(String, String)
.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Returns the id of this action.
|
java.lang.String |
getLabel()
Returns the label of this action, which is used in the user interface to render the
action.
|
public java.lang.String getId()
Returns the id of this action. The action id is used in the user interface to identify this action, such that it can be acted upon when triggered.
In order to ensure that an action id is unique across different statuses, it should
generally be prefixed by the status type (see ResourceStatusProvider.getType()
).
public java.lang.String getLabel()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"