Mercurial > projects > dwt-addons
diff dwtx/jface/bindings/keys/formatting/NativeKeyFormatter.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/NativeKeyFormatter.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/bindings/keys/formatting/NativeKeyFormatter.d Fri Apr 11 01:24:25 2008 +0200 @@ -37,6 +37,7 @@ * @since 3.1 */ public final class NativeKeyFormatter : AbstractKeyFormatter { + alias AbstractKeyFormatter.format format; /** * The key into the internationalization resource bundle for the delimiter @@ -98,7 +99,7 @@ * The key to format. * @return The key formatted as a string; should not be <code>null</code>. */ - public final String format(int key) { + public override final String format(int key) { IKeyLookup lookup = KeyLookupFactory.getDefault(); String name = lookup.formalNameLookup(key); @@ -118,7 +119,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyDelimiter() */ - protected String getKeyDelimiter() { + protected override String getKeyDelimiter() { // We must do the look up every time, as our locale might change. if ("carbon".equals(DWT.getPlatform())) { //$NON-NLS-1$ return Util.translateString(RESOURCE_BUNDLE, @@ -134,7 +135,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#getKeyStrokeDelimiter() */ - protected String getKeyStrokeDelimiter() { + protected override String getKeyStrokeDelimiter() { // We must do the look up every time, as our locale might change. if ("win32".equals(DWT.getPlatform())) { //$NON-NLS-1$ return Util.translateString(RESOURCE_BUNDLE, @@ -151,7 +152,7 @@ * * @see dwtx.jface.bindings.keys.AbstractKeyFormatter#sortModifierKeys(int) */ - protected int[] sortModifierKeys(int modifierKeys) { + protected override int[] sortModifierKeys(int modifierKeys) { IKeyLookup lookup = KeyLookupFactory.getDefault(); String platform = DWT.getPlatform(); int[] sortedKeys = new int[4];