Mercurial > projects > dwt-addons
diff dwtx/jface/bindings/keys/formatting/EmacsKeyFormatter.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | 644f1334b451 |
children | 7a3e6c1a4eae |
line wrap: on
line diff
--- a/dwtx/jface/bindings/keys/formatting/EmacsKeyFormatter.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/bindings/keys/formatting/EmacsKeyFormatter.d Fri Apr 11 01:24:25 2008 +0200 @@ -33,6 +33,7 @@ * @since 3.1 */ public final class EmacsKeyFormatter : AbstractKeyFormatter { + alias AbstractKeyFormatter.format format; /** * The resource bundle used by <code>format()</code> to translate formal @@ -52,7 +53,7 @@ * The key to format; must not be <code>null</code>. * @return The key formatted as a string; should not be <code>null</code>. */ - public String format(int key) { + public override String format(int key) { IKeyLookup lookup = KeyLookupFactory.getDefault(); if (lookup.isModifierKey(key)) { String formattedName = Util.translateString(RESOURCE_BUNDLE, lookup @@ -70,7 +71,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyDelimiter() */ - protected String getKeyDelimiter() { + protected override String getKeyDelimiter() { return Util.translateString(RESOURCE_BUNDLE, KEY_DELIMITER_KEY, KeyStroke.KEY_DELIMITER); } @@ -80,7 +81,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyStrokeDelimiter() */ - protected String getKeyStrokeDelimiter() { + protected override String getKeyStrokeDelimiter() { return Util.translateString(RESOURCE_BUNDLE, KEY_STROKE_DELIMITER_KEY, KeySequence.KEY_STROKE_DELIMITER); } @@ -90,7 +91,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;