public interface BindingFactory
Modifier and Type | Method and Description |
---|---|
@NonNull Binding |
createKeyBinding(@NonNull TriggerSequence sequence,
@NonNull org.eclipse.core.commands.ParameterizedCommand command,
@NonNull java.lang.String schemeId,
@NonNull java.lang.String contextId)
Create a binding between the sequence and the command
|
@NonNull KeySequence |
getKeySequenceInstance() |
@NonNull KeySequence |
getKeySequenceInstance(@NonNull KeyLookup keylookup,
@NonNull java.lang.String sequence)
Create a key sequence from the string representation
|
@NonNull KeySequence |
getKeySequenceInstance(@NonNull KeySequence keySequence,
@NonNull KeyStroke stroke)
Create a sequence from a stroke
|
@NonNull KeyStroke |
getKeyStrokeInstance(@NonNull KeyLookup lookup,
int modifierKeys,
int naturalKey)
Create a keystroke from basic data
|
@NonNull KeySequence getKeySequenceInstance(@NonNull KeyLookup keylookup, @NonNull java.lang.String sequence) throws ParseException
keylookup
- the key lookupsequence
- the sequence stringParseException
- if the string can not be parsed@NonNull KeySequence getKeySequenceInstance()
@NonNull KeySequence getKeySequenceInstance(@NonNull KeySequence keySequence, @NonNull KeyStroke stroke)
keySequence
- the original sequencestroke
- the stroke@NonNull Binding createKeyBinding(@NonNull TriggerSequence sequence, @NonNull org.eclipse.core.commands.ParameterizedCommand command, @NonNull java.lang.String schemeId, @NonNull java.lang.String contextId)
sequence
- the sequencecommand
- the commandschemeId
- the schemecontextId
- the context id