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 public abstract class Key extends Object implements Comparable
Deprecated.Please use org.eclipse.jface.bindings.keys.KeyStroke and org.eclipse.jface.bindings.keys.KeyLookupFactoryKeyis the abstract base class for all objects representing keys on the keyboard.All
Keyobjects have a formal string representation, called the 'name' of the key, available via thetoString()method.All
Keyobjects, via theformat()method, provide a version of their formal string representation translated by platform and locale, suitable for display to a user.Keyobjects 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 Summary
Fields Modifier and Type Field Description protected intkeyDeprecated.The key from which this key was constructed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(Object object)Deprecated.booleanequals(Object object)Deprecated.inthashCode()Deprecated.StringtoString()Deprecated.Returns the formal string representation for this key.
-
-
-
Method Detail
-
compareTo
public final int compareTo(Object object)
Deprecated.- Specified by:
compareToin interfaceComparable- See Also:
Comparable.compareTo(java.lang.Object)
-
-