Mercurial > projects > dwt-addons
diff dwtx/jface/action/ControlContribution.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | eb6b3e6de869 |
children |
line wrap: on
line diff
--- a/dwtx/jface/action/ControlContribution.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/action/ControlContribution.d Fri Apr 11 01:24:25 2008 +0200 @@ -34,6 +34,7 @@ * </p> */ public abstract class ControlContribution : ContributionItem { + alias ContributionItem.fill fill; /** * Creates a control contribution item with the given id. * @@ -79,7 +80,7 @@ * Subclasses must implement <code>createControl</code> rather than * overriding this method. */ - public final void fill(Composite parent) { + public override final void fill(Composite parent) { createControl(parent); } @@ -87,7 +88,7 @@ * The control item implementation of this <code>IContributionItem</code> * method throws an exception since controls cannot be added to menus. */ - public final void fill(Menu parent, int index) { + public override final void fill(Menu parent, int index) { Assert.isTrue(false, "Can't add a control to a menu");//$NON-NLS-1$ } @@ -99,7 +100,7 @@ * Subclasses must implement <code>createControl</code> rather than * overriding this method. */ - public final void fill(ToolBar parent, int index) { + public override final void fill(ToolBar parent, int index) { Control control = createControl(parent); ToolItem ti = new ToolItem(parent, DWT.SEPARATOR, index); ti.setControl(control);