Interface EditorAction
- All Known Subinterfaces:
Editor<T>
- All Known Implementing Classes:
BooleanAction,EnumAction,ListEditor,NumberAction,ValueEditor
public interface EditorAction
An action of the editor
-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<String> complete(EditorActor actor, String[] args) Get the completion suggestions, given the argumentsGet the description of the actionvoidexecute(EditorActor actor, String[] args) Execute the actiondefault EditorStringusage()Get the usage of the action
-
Method Details
-
execute
Execute the action- Parameters:
actor- the actorargs- the arguments
-
description
EditorString description()Get the description of the action- Returns:
- the description
-
complete
Get the completion suggestions, given the arguments- Parameters:
actor- the actionargs- the argument- Returns:
- the suggestions
-
usage
Get the usage of the action- Returns:
- the usage
-