Constructor and Description |
---|
ShortcutCommand(@NotNull CommandQueue commandQueue,
@NotNull java.lang.String command)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
displaysFace(Face face)
Returns whether this shortcut displays the given face.
|
void |
dispose()
Releases all allocated resources.
|
void |
execute()
Executes the shortcut.
|
@NotNull java.lang.String |
getCommand()
Returns the command to execute.
|
@NotNull java.lang.String |
getTooltipText()
Returns the current tooltip text.
|
void |
visit(@NotNull ShortcutVisitor visitor)
Calls a
ShortcutVisitor 's visit() function for this
instance. |
addShortcutListener, fireModifiedEvent, removeShortcutListener
public ShortcutCommand(@NotNull @NotNull CommandQueue commandQueue, @NotNull @NotNull java.lang.String command)
commandQueue
- the command queue for sending commandscommand
- the command to execute@NotNull public @NotNull java.lang.String getCommand()
public void dispose()
Shortcut
public void execute()
Shortcut
@NotNull public @NotNull java.lang.String getTooltipText()
Shortcut
getTooltipText
in class Shortcut
public void visit(@NotNull @NotNull ShortcutVisitor visitor)
Shortcut
ShortcutVisitor
's visit()
function for this
instance.public boolean displaysFace(Face face)
Shortcut
displaysFace
in class Shortcut
face
- the face to check for