Mercurial > projects > dwt-addons
comparison dwtx/jface/bindings/keys/formatting/FormalKeyFormatter.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | e0f0aaf75edd |
children |
comparison
equal
deleted
inserted
replaced
42:4567a6f54939 | 43:ea8ff534f622 |
---|---|
29 * </p> | 29 * </p> |
30 * | 30 * |
31 * @since 3.1 | 31 * @since 3.1 |
32 */ | 32 */ |
33 public final class FormalKeyFormatter : AbstractKeyFormatter { | 33 public final class FormalKeyFormatter : AbstractKeyFormatter { |
34 alias AbstractKeyFormatter.format format; | |
34 | 35 |
35 /* | 36 /* |
36 * (non-Javadoc) | 37 * (non-Javadoc) |
37 * | 38 * |
38 * @see dwtx.jface.bindings.keys.KeyFormatter#format(dwtx.ui.keys.KeySequence) | 39 * @see dwtx.jface.bindings.keys.KeyFormatter#format(dwtx.ui.keys.KeySequence) |
39 */ | 40 */ |
40 public String format(int key) { | 41 public override String format(int key) { |
41 IKeyLookup lookup = KeyLookupFactory.getDefault(); | 42 IKeyLookup lookup = KeyLookupFactory.getDefault(); |
42 return lookup.formalNameLookup(key); | 43 return lookup.formalNameLookup(key); |
43 } | 44 } |
44 | 45 |
45 /* | 46 /* |
46 * (non-Javadoc) | 47 * (non-Javadoc) |
47 * | 48 * |
48 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyDelimiter() | 49 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyDelimiter() |
49 */ | 50 */ |
50 protected String getKeyDelimiter() { | 51 protected override String getKeyDelimiter() { |
51 return KeyStroke.KEY_DELIMITER; | 52 return KeyStroke.KEY_DELIMITER; |
52 } | 53 } |
53 | 54 |
54 /* | 55 /* |
55 * (non-Javadoc) | 56 * (non-Javadoc) |
56 * | 57 * |
57 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyStrokeDelimiter() | 58 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyStrokeDelimiter() |
58 */ | 59 */ |
59 protected String getKeyStrokeDelimiter() { | 60 protected override String getKeyStrokeDelimiter() { |
60 return KeySequence.KEY_STROKE_DELIMITER; | 61 return KeySequence.KEY_STROKE_DELIMITER; |
61 } | 62 } |
62 | 63 |
63 /* | 64 /* |
64 * (non-Javadoc) | 65 * (non-Javadoc) |
65 * | 66 * |
66 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#sortModifierKeys(int) | 67 * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#sortModifierKeys(int) |
67 */ | 68 */ |
68 protected int[] sortModifierKeys(int modifierKeys) { | 69 protected override int[] sortModifierKeys(int modifierKeys) { |
69 IKeyLookup lookup = KeyLookupFactory.getDefault(); | 70 IKeyLookup lookup = KeyLookupFactory.getDefault(); |
70 int[] sortedKeys = new int[4]; | 71 int[] sortedKeys = new int[4]; |
71 int index = 0; | 72 int index = 0; |
72 | 73 |
73 if ((modifierKeys & lookup.getAlt()) !is 0) { | 74 if ((modifierKeys & lookup.getAlt()) !is 0) { |