public class ActivateCommandInputCommand extends java.lang.Object implements GUICommand2
GUICommand
which activates the command input field.Constructor and Description |
---|
ActivateCommandInputCommand(@NotNull java.lang.String commandText,
@NotNull CommandCallback commandCallback,
@NotNull Macros macros)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute()
Returns whether this command may be executed.
|
void |
execute()
Executes the command.
|
@NotNull java.lang.String |
getCommandString()
Returns the command as a string.
|
public ActivateCommandInputCommand(@NotNull @NotNull java.lang.String commandText, @NotNull @NotNull CommandCallback commandCallback, @NotNull @NotNull Macros macros)
commandText
- the command text to setcommandCallback
- the command callback to affectmacros
- the macros instance to usepublic boolean canExecute()
GUICommand
canExecute
in interface GUICommand
public void execute()
GUICommand
GUICommand.canExecute()
returns false
.execute
in interface GUICommand
@NotNull public @NotNull java.lang.String getCommandString()
GUICommand2
getCommandString
in interface GUICommand2