|
Eclipse Platform Release 3.1 |
|||||||||||
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.EmacsKeyFormatter
A key formatter providing the Emacs-style accelerators using single letters to represent the modifier keys.
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 | |
---|---|
EmacsKeyFormatter()
|
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 EmacsKeyFormatter()
Method Detail |
public String format(int key)
format
in interface IKeyFormatter
format
in class AbstractKeyFormatter
key
- The key to format; must not be null
.
null
.protected String getKeyDelimiter()
AbstractKeyFormatter
getKeyDelimiter
in class AbstractKeyFormatter
null
.protected String getKeyStrokeDelimiter()
AbstractKeyFormatter
getKeyStrokeDelimiter
in class AbstractKeyFormatter
null
.protected int[] sortModifierKeys(int modifierKeys)
AbstractKeyFormatter
sortModifierKeys
in class AbstractKeyFormatter
modifierKeys
- The modifier keys from the key stroke.
KeyStroke.NO_KEY
should be ignored.
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.