diff dwtx/jface/wizard/WizardDialog.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 46a6e0e6ccd4
line wrap: on
line diff
--- a/dwtx/jface/wizard/WizardDialog.d	Thu Apr 10 19:10:12 2008 +0200
+++ b/dwtx/jface/wizard/WizardDialog.d	Fri Apr 11 01:24:25 2008 +0200
@@ -204,7 +204,7 @@
         /*
          * (non-Javadoc) Method declared on Layout.
          */
-        public Point computeSize(Composite composite, int wHint, int hHint,
+        public override Point computeSize(Composite composite, int wHint, int hHint,
                 bool force) {
             if (wHint !is DWT.DEFAULT && hHint !is DWT.DEFAULT) {
                 return new Point(wHint, hHint);
@@ -255,7 +255,7 @@
         /*
          * (non-Javadoc) Method declared on Layout.
          */
-        public void layout(Composite composite, bool force) {
+        public override void layout(Composite composite, bool force) {
             Rectangle rect = getClientArea(composite);
             Control[] children = composite.getChildren();
             for (int i = 0; i < children.length; i++) {
@@ -372,7 +372,7 @@
     /*
      * (non-Javadoc) Method declared on Dialog.
      */
-    protected void buttonPressed(int buttonId) {
+    protected override void buttonPressed(int buttonId) {
         switch (buttonId) {
         case IDialogConstants.HELP_ID: {
             helpPressed();
@@ -421,7 +421,7 @@
     /*
      * (non-Javadoc) Method declared on Dialog.
      */
-    protected void cancelPressed() {
+    protected override void cancelPressed() {
         if (activeRunningOperations <= 0) {
             // Close the dialog. The check whether the dialog can be
             // closed or not is done in <code>okToClose</code>.
@@ -439,7 +439,7 @@
      *
      * @see dwtx.jface.window.Window#close()
      */
-    public bool close() {
+    public override bool close() {
         if (okToClose()) {
             return hardClose();
         }
@@ -449,7 +449,7 @@
     /*
      * (non-Javadoc) Method declared on Window.
      */
-    protected void configureShell(Shell newShell) {
+    protected override void configureShell(Shell newShell) {
         super.configureShell(newShell);
         // Register help listener on the shell
         newShell.addHelpListener(new class HelpListener {
@@ -473,7 +473,7 @@
      * @param parent
      *            the parent composite to contain the buttons
      */
-    protected void createButtonsForButtonBar(Composite parent) {
+    protected override void createButtonsForButtonBar(Composite parent) {
         (cast(GridLayout) parent.getLayout()).makeColumnsEqualWidth = false;
         if (wizard.isHelpAvailable()) {
             helpButton = createButton(parent, IDialogConstants.HELP_ID,
@@ -492,7 +492,7 @@
      *
      * @see dwtx.jface.dialogs.Dialog#setButtonLayoutData(dwt.widgets.Button)
      */
-    protected void setButtonLayoutData(Button button) {
+    protected override void setButtonLayoutData(Button button) {
         GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
         int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);
 
@@ -534,7 +534,7 @@
      *            the button id
      * @return the button corresponding to the button id
      */
-    protected Button getButton(int id) {
+    protected override Button getButton(int id) {
         if (id is IDialogConstants.CANCEL_ID) {
             return cancelButton;
         }
@@ -550,7 +550,7 @@
      * pre-create their page controls prior to opening, so that the wizard opens
      * to the correct size. And finally it shows the first page.
      */
-    protected Control createContents(Composite parent) {
+    protected override Control createContents(Composite parent) {
         // Allow the wizard to add pages to itself
         // Need to call this now so page count is correct
         // for determining if next/previous buttons are needed
@@ -566,7 +566,7 @@
     /*
      * (non-Javadoc) Method declared on Dialog.
      */
-    protected Control createDialogArea(Composite parent) {
+    protected override Control createDialogArea(Composite parent) {
         Composite composite = cast(Composite) super.createDialogArea(parent);
         // Build the Page container
         pageContainer = createPageContainer(composite);