Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/PopupDialog.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | 4567a6f54939 |
children | 46a6e0e6ccd4 |
line wrap: on
line diff
--- a/dwtx/jface/dialogs/PopupDialog.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/dialogs/PopupDialog.d Fri Apr 11 01:24:25 2008 +0200 @@ -127,7 +127,7 @@ * * @see dwtx.jface.action.IAction#run() */ - public void run() { + public override void run() { performTrackerAction(DWT.NONE); } @@ -146,7 +146,7 @@ /* * @see dwtx.jface.action.Action#run() */ - public void run() { + public override void run() { performTrackerAction(DWT.RESIZE); } } @@ -168,7 +168,7 @@ * * @see dwtx.jface.action.IAction#run() */ - public void run() { + public override void run() { persistBounds = isChecked(); } } @@ -372,7 +372,7 @@ * * @see dwtx.jface.window.Window#configureShell(Shell) */ - protected void configureShell(Shell shell) { + protected override void configureShell(Shell shell) { Display display = shell.getDisplay(); shell.setBackground(display.getSystemColor(DWT.COLOR_BLACK)); @@ -456,7 +456,7 @@ * * @return the control representing the contents. */ - protected Control createContents(Composite parent) { + protected override Control createContents(Composite parent) { Composite composite = new Composite(parent, DWT.NONE); POPUP_LAYOUT_FACTORY.applyTo(composite); LAYOUTDATA_GRAB_BOTH.applyTo(composite); @@ -858,7 +858,7 @@ * * @see dwtx.jface.window.Window#open() */ - public int open() { + public override int open() { Shell shell = getShell(); if (shell is null || shell.isDisposed()) { @@ -907,7 +907,7 @@ * @return <code>true</code> if the window is (or was already) closed, and * <code>false</code> if it is still open */ - public bool close() { + public override bool close() { // If already closed, there is nothing to do. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=127505 if (getShell() is null || getShell().isDisposed()) { @@ -985,7 +985,7 @@ * * @see dwtx.jface.window.Window#getInitialSize() */ - protected Point getInitialSize() { + protected override Point getInitialSize() { Point result = super.getInitialSize(); if (persistBounds) { IDialogSettings settings = getDialogSettings(); @@ -1021,7 +1021,7 @@ * * @see dwtx.jface.window.Window#getInitialLocation(dwt.graphics.Point) */ - protected Point getInitialLocation(Point initialSize) { + protected override Point getInitialLocation(Point initialSize) { Point result = super.getInitialLocation(initialSize); if (persistBounds) { IDialogSettings settings = getDialogSettings();