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.KeyLookupFactoryKey
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 thetoString()
method.All
Key
objects, via theformat()
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 Summary
Fields Modifier and Type Field Description protected int
key
Deprecated.The key from which this key was constructed.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(Object object)
Deprecated.boolean
equals(Object object)
Deprecated.int
hashCode()
Deprecated.String
toString()
Deprecated.Returns the formal string representation for this key.
-
-
-
Method Detail
-
compareTo
public final int compareTo(Object object)
Deprecated.- Specified by:
compareTo
in interfaceComparable
- See Also:
Comparable.compareTo(java.lang.Object)
-
-