public final class FormalKeyFormatter extends AbstractKeyFormatter
Formats the keys in the internal key sequence grammar. This is used for persistence, and is not really intended for display to the user.
KEY_DELIMITER_KEY, KEY_STROKE_DELIMITER_KEY, NO_MODIFIER_KEYS| Constructor and Description |
|---|
FormalKeyFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(int key)
Formats an individual key into a human readable format.
|
protected String |
getKeyDelimiter()
An accessor for the delimiter you wish to use between keys.
|
protected String |
getKeyStrokeDelimiter()
An accessor for the delimiter you wish to use between key strokes.
|
protected int[] |
sortModifierKeys(int modifierKeys)
Separates the modifier keys from each other, and then places them in an
array in some sorted order.
|
format, formatpublic String format(int key)
IKeyFormatterformat in interface IKeyFormatterformat in class AbstractKeyFormatterkey - The key to format.null.protected String getKeyDelimiter()
AbstractKeyFormattergetKeyDelimiter in class AbstractKeyFormatternull.protected String getKeyStrokeDelimiter()
AbstractKeyFormattergetKeyStrokeDelimiter in class AbstractKeyFormatternull.protected int[] sortModifierKeys(int modifierKeys)
AbstractKeyFormattersortModifierKeys in class AbstractKeyFormattermodifierKeys - The modifier keys from the key stroke.KeyStroke.NO_KEY should be ignored.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.