|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.bindings.keys.formatting.AbstractKeyFormatter
org.eclipse.jface.bindings.keys.formatting.NativeKeyFormatter
public final class NativeKeyFormatter
Formats the key sequences and key strokes into the native human-readable format. This is typically what you would see on the menus for the given platform and locale.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jface.bindings.keys.formatting.AbstractKeyFormatter |
|---|
KEY_DELIMITER_KEY, KEY_STROKE_DELIMITER_KEY, NO_MODIFIER_KEYS |
| Constructor Summary | |
|---|---|
NativeKeyFormatter()
|
|
| Method Summary | |
|---|---|
String |
format(int key)
Formats an individual key into a human readable format. |
protected String |
getKeyDelimiter()
An accessor for the delimiter you wish to use between keys. |
protected String |
getKeyStrokeDelimiter()
An accessor for the delimiter you wish to use between key strokes. |
protected int[] |
sortModifierKeys(int modifierKeys)
Separates the modifier keys from each other, and then places them in an array in some sorted order. |
| Methods inherited from class org.eclipse.jface.bindings.keys.formatting.AbstractKeyFormatter |
|---|
format, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeKeyFormatter()
| Method Detail |
|---|
public final String format(int key)
format in interface IKeyFormatterformat in class AbstractKeyFormatterkey - The key to format.
null.protected String getKeyDelimiter()
AbstractKeyFormatter
getKeyDelimiter in class AbstractKeyFormatternull.protected String getKeyStrokeDelimiter()
AbstractKeyFormatter
getKeyStrokeDelimiter in class AbstractKeyFormatternull.protected int[] sortModifierKeys(int modifierKeys)
AbstractKeyFormatter
sortModifierKeys in class AbstractKeyFormattermodifierKeys - The modifier keys from the key stroke.
KeyStroke.NO_KEY should be ignored.
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.