Mercurial > projects > dwt-addons
diff dwtx/jface/dialogs/MessageDialog.d @ 43:ea8ff534f622
Fix override and super aliases
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Apr 2008 01:24:25 +0200 |
parents | cb935a3f6e90 |
children | c3583c6ec027 |
line wrap: on
line diff
--- a/dwtx/jface/dialogs/MessageDialog.d Thu Apr 10 19:10:12 2008 +0200 +++ b/dwtx/jface/dialogs/MessageDialog.d Fri Apr 11 01:24:25 2008 +0200 @@ -169,7 +169,7 @@ * (non-Javadoc) * @see dwtx.jface.dialogs.Dialog#buttonPressed(int) */ - protected void buttonPressed(int buttonId) { + protected override void buttonPressed(int buttonId) { setReturnCode(buttonId); close(); } @@ -178,7 +178,7 @@ * (non-Javadoc) * @see dwtx.jface.window.Window#configureShell(dwt.widgets.Shell) */ - protected void configureShell(Shell shell) { + protected override void configureShell(Shell shell) { super.configureShell(shell); if (title !is null) { shell.setText(title); @@ -191,7 +191,7 @@ /* * (non-Javadoc) Method declared on Dialog. */ - protected void createButtonsForButtonBar(Composite parent) { + protected override void createButtonsForButtonBar(Composite parent) { buttons = new Button[buttonLabels.length]; for (int i = 0; i < buttonLabels.length; i++) { String label = buttonLabels[i]; @@ -224,7 +224,7 @@ * override <code>createCustomArea</code> to add contents below the * message. */ - protected Control createDialogArea(Composite parent) { + protected override Control createDialogArea(Composite parent) { // create message area createMessageArea(parent); // create the top level composite for the dialog area @@ -252,7 +252,7 @@ * the index of the button in the dialog's button bar * @return a button in the dialog's button bar */ - protected Button getButton(int index) { + protected override Button getButton(int index) { return buttons[index]; } @@ -275,7 +275,7 @@ * * @see dwtx.jface.window.Window#handleShellCloseEvent() */ - protected void handleShellCloseEvent() { + protected override void handleShellCloseEvent() { //Sets a return code of DWT.DEFAULT since none of the dialog buttons // were pressed to close the dialog. super.handleShellCloseEvent(); @@ -406,7 +406,7 @@ * @see dwtx.jface.dialogs.Dialog#createButton(dwt.widgets.Composite, * int, java.lang.String, bool) */ - protected Button createButton(Composite parent, int id, String label, + protected override Button createButton(Composite parent, int id, String label, bool defaultButton) { Button button = super.createButton(parent, id, label, defaultButton); //Be sure to set the focus if the custom area cannot so as not @@ -439,7 +439,7 @@ * (non-Javadoc) * @see dwtx.jface.dialogs.IconAndMessageDialog#getImage() */ - public Image getImage() { + public override Image getImage() { return image; }