Package org.eclipse.ui.keys
Class CharacterKey
java.lang.Object
org.eclipse.ui.keys.Key
org.eclipse.ui.keys.NaturalKey
org.eclipse.ui.keys.CharacterKey
- All Implemented Interfaces:
Comparable
Deprecated, for removal: This API element is subject to removal in a future version.
Please use org.eclipse.jface.bindings.keys.KeyStroke and
org.eclipse.jface.bindings.keys.KeyLookupFactory
Instances of CharacterKey represent keys on the keyboard which
represent unicode characters.
CharacterKey objects are immutable. Clients are not permitted to
extend this class.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the backspace key (U+0008).static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the carriage return (U+000D) keystatic final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the delete (U+007F) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the escape (U+001B) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the form feed (U+000C) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the line feed (U+000A) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the null (U+0000) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the space (U+0020) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the tab (U+0009) key.static final CharacterKeyDeprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the vertical tab (U+000B) key. -
Method Summary
Modifier and TypeMethodDescriptioncharDeprecated, for removal: This API element is subject to removal in a future version.Gets the character that this object represents.static CharacterKeygetInstance(char character) Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance ofCharacterKeygiven a unicode character.
-
Field Details
-
BS
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the backspace key (U+0008). -
CR
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the carriage return (U+000D) key -
DEL
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the delete (U+007F) key. -
ESC
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the escape (U+001B) key. -
FF
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the form feed (U+000C) key. -
LF
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the line feed (U+000A) key. -
NUL
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the null (U+0000) key. -
SPACE
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the space (U+0020) key. -
TAB
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the tab (U+0009) key. -
VT
Deprecated, for removal: This API element is subject to removal in a future version.The single static instance ofCharacterKeywhich represents the vertical tab (U+000B) key.
-
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Creates an instance ofCharacterKeygiven a unicode character. This method determines the correct name for the key based on character. Typically, this name is a string of one-character in length equal to the character that this instance represents.- Parameters:
character- the character that the resultantCharacterKeyinstance is to represent.- Returns:
- an instance of
CharacterKeyrepresenting the character.
-
getCharacter
public char getCharacter()Deprecated, for removal: This API element is subject to removal in a future version.Gets the character that this object represents.- Returns:
- the character that this object represents.
-