Package org.eclipse.ui.keys
Class Key
java.lang.Object
org.eclipse.ui.keys.Key
- All Implemented Interfaces:
- Comparable
- Direct Known Subclasses:
- ModifierKey,- NaturalKey
@Deprecated(forRemoval=true,
            since="2024-03")
public abstract class Key
extends Object
implements 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
 Key is the abstract base class for all objects representing keys
 on the keyboard.
 
 All Key objects have a formal string representation, called the
 'name' of the key, available via the toString() method.
 
 All Key objects, via the format() method, provide a
 version of their formal string representation translated by platform and
 locale, suitable for display to a user.
 
 Key objects are immutable. Clients are not permitted to extend
 this class.
 
- Since:
- 3.0
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final intDeprecated, for removal: This API element is subject to removal in a future version.The key from which this key was constructed.
- 
Method SummaryModifier and TypeMethodDescriptionfinal intDeprecated, for removal: This API element is subject to removal in a future version.final booleanDeprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.final StringtoString()Deprecated, for removal: This API element is subject to removal in a future version.Returns the formal string representation for this key.
- 
Field Details- 
keyprotected final int keyDeprecated, for removal: This API element is subject to removal in a future version.The key from which this key was constructed. This value is defined byKeyLookupFactory.getDefault().
 
- 
- 
Method Details- 
compareToDeprecated, for removal: This API element is subject to removal in a future version.- Specified by:
- compareToin interface- Comparable
- See Also:
 
- 
equalsDeprecated, for removal: This API element is subject to removal in a future version.
- 
hashCodepublic final int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
- 
toStringDeprecated, for removal: This API element is subject to removal in a future version.Returns the formal string representation for this key.
 
-