Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/Dialog.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | a3ff22a98bef |
children | f44bd8465f2f |
line wrap: on
line diff
--- a/dwtx/jface/dialogs/Dialog.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/dialogs/Dialog.d Fri Apr 11 01:24:25 2008 +0200 @@ -700,7 +700,7 @@ /* * @see Window.initializeBounds() */ - protected void initializeBounds() { + protected override void initializeBounds() { String platform = DWT.getPlatform(); if ("carbon".equals(platform)) { //$NON-NLS-1$ // On Mac OS X the default button must be the right-most button @@ -747,7 +747,7 @@ * <code>createButtonBar</code> are recommended rather than overriding * this method. */ - protected Control createContents(Composite parent) { + protected override Control createContents(Composite parent) { // create the top level composite for the dialog Composite composite = new Composite(parent, 0); GridLayout layout = new GridLayout(); @@ -974,7 +974,7 @@ /** * @see dwtx.jface.window.Window#close() */ - public bool close() { + public override bool close() { if (getShell() !is null && !getShell().isDisposed()) { saveDialogBounds(getShell()); } @@ -1088,7 +1088,7 @@ * * @see dwtx.jface.window.Window#create() */ - public void create() { + public override void create() { super.create(); applyDialogFont(buttonBar); } @@ -1195,7 +1195,7 @@ * @see #getDialogBoundsSettings() * @see #getDialogBoundsStrategy() */ - protected Point getInitialSize() { + protected override Point getInitialSize() { Point result = super.getInitialSize(); // Check the dialog settings for a stored size. @@ -1255,7 +1255,7 @@ * @see #getDialogBoundsSettings() * @see #getDialogBoundsStrategy() */ - protected Point getInitialLocation(Point initialSize) { + protected override Point getInitialLocation(Point initialSize) { Point result = super.getInitialLocation(initialSize); if ((getDialogBoundsStrategy() & DIALOG_PERSISTLOCATION)!is 0) { IDialogSettings settings = getDialogBoundsSettings();