Mercurial > projects > dwt-addons
diff 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 |
line wrap: on
line diff
--- a/dwtx/jface/bindings/keys/formatting/FormalKeyFormatter.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/bindings/keys/formatting/FormalKeyFormatter.d Fri Apr 11 01:24:25 2008 +0200 @@ -31,13 +31,14 @@ * @since 3.1 */ public final class FormalKeyFormatter : AbstractKeyFormatter { + alias AbstractKeyFormatter.format format; /* * (non-Javadoc) * * @see dwtx.jface.bindings.keys.KeyFormatter#format(dwtx.ui.keys.KeySequence) */ - public String format(int key) { + public override String format(int key) { IKeyLookup lookup = KeyLookupFactory.getDefault(); return lookup.formalNameLookup(key); } @@ -47,7 +48,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyDelimiter() */ - protected String getKeyDelimiter() { + protected override String getKeyDelimiter() { return KeyStroke.KEY_DELIMITER; } @@ -56,7 +57,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyStrokeDelimiter() */ - protected String getKeyStrokeDelimiter() { + protected override String getKeyStrokeDelimiter() { return KeySequence.KEY_STROKE_DELIMITER; } @@ -65,7 +66,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#sortModifierKeys(int) */ - protected int[] sortModifierKeys(int modifierKeys) { + protected override int[] sortModifierKeys(int modifierKeys) { IKeyLookup lookup = KeyLookupFactory.getDefault(); int[] sortedKeys = new int[4]; int index = 0;