1 11 12 package org.eclipse.ui.internal.keys; 13 14 import java.util.Comparator ; 15 16 import org.eclipse.ui.keys.Key; 17 import org.eclipse.ui.keys.KeySequence; 18 import org.eclipse.ui.keys.KeyStroke; 19 20 26 public class FormalKeyFormatter extends AbstractKeyFormatter { 27 28 32 private static final Comparator FORMAL_MODIFIER_KEY_COMPARATOR = new AlphabeticModifierKeyComparator(); 33 34 39 public String format(Key key) { 40 return key.toString(); 41 } 42 43 48 protected String getKeyDelimiter() { 49 return KeyStroke.KEY_DELIMITER; 50 } 51 52 57 protected String getKeyStrokeDelimiter() { 58 return KeySequence.KEY_STROKE_DELIMITER; 59 } 60 61 66 protected Comparator getModifierKeyComparator() { 67 return FORMAL_MODIFIER_KEY_COMPARATOR; 68 } 69 70 } 71 | Popular Tags |