public class CopySelectedTextCommand extends AbstractSelectionCommand
Constructor and Description |
---|
CopySelectedTextCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecute()
Subclasses may override this method to perform argument validation beyond the validation that
happens automatically during the injection phase.
|
protected void |
execute()
This method is called in order to execute the command.
|
protected String |
getSelectedText() |
protected boolean |
isAllowed(Selection s) |
boolean |
isAvailable()
Returns an indicator whether the command is available and therefore integrable.
|
clearFirstSelection, getFirstSelection, getSelections
getPageView, setPageView
getContext, propagateContextChange, setContext
canExecute, execute, getKey, isSelected, isSelected, setKey
protected boolean canExecute()
InjectedCommand
Argument
annotations and the
arguments have been injected.canExecute
in class AbstractSelectionCommand
true
if the command can/may be executed in the current context,
false
otherwise.protected void execute()
InjectedCommand
InjectedCommand.canExecute()
has returned
true
.execute
in class InjectedCommand
protected String getSelectedText()
protected boolean isAllowed(Selection s)
public boolean isAvailable()
Command
isAvailable
in interface Command
isAvailable
in class InjectedCommand
true
- available false
- not availableCommand.isAvailable()
Copyright © 2024 levigo holding gmbh. All rights reserved.