Package org.eclipse.ui.keys
Class Key
- java.lang.Object
-
- org.eclipse.ui.keys.Key
-
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
ModifierKey,NaturalKey
@Deprecated public abstract class Key extends java.lang.Object implements java.lang.ComparableDeprecated.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(java.lang.Object object)Deprecated.booleanequals(java.lang.Object object)Deprecated.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.Returns the formal string representation for this key.
-
-
-
Method Detail
-
compareTo
public final int compareTo(java.lang.Object object)
Deprecated.- Specified by:
compareToin interfacejava.lang.Comparable- See Also:
Comparable.compareTo(java.lang.Object)
-
equals
public final boolean equals(java.lang.Object object)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public final java.lang.String toString()
Deprecated.Returns the formal string representation for this key.- Overrides:
toStringin classjava.lang.Object- Returns:
- The formal string representation for this key. Guaranteed not to be
null.
-
-