diff dwtx/jface/dialogs/ProgressMonitorDialog.d @ 43:ea8ff534f622

Fix override and super aliases
author Frank Benoit <benoit@tionex.de>
date Fri, 11 Apr 2008 01:24:25 +0200
parents 1451821c3e00
children 46a6e0e6ccd4
line wrap: on
line diff
--- a/dwtx/jface/dialogs/ProgressMonitorDialog.d	Thu Apr 10 19:10:12 2008 +0200
+++ b/dwtx/jface/dialogs/ProgressMonitorDialog.d	Fri Apr 11 01:24:25 2008 +0200
@@ -340,7 +340,7 @@
      *
      * @since 3.0
      */
-    protected void cancelPressed() {
+    protected override void cancelPressed() {
         // NOTE: this was previously done from a listener installed on the
         // cancel button. On GTK, the listener installed by
         // Dialog.createButton is called first and this was throwing an
@@ -357,7 +357,7 @@
      * The <code>ProgressMonitorDialog</code> implementation of this method
      * only closes the dialog if there are no currently running runnables.
      */
-    public bool close() {
+    public override bool close() {
         if (getNestingDepth() <= 0) {
             clearCursors();
             return super.close();
@@ -391,7 +391,7 @@
     /*
      * (non-Javadoc) Method declared in Window.
      */
-    protected void configureShell(Shell shell) {
+    protected override void configureShell(Shell shell) {
         super.configureShell(shell);
         shell.setText(JFaceResources.getString("ProgressMonitorDialog.title")); //$NON-NLS-1$
         if (waitCursor is null) {
@@ -418,7 +418,7 @@
     /*
      * (non-Javadoc) Method declared on Dialog.
      */
-    protected void createButtonsForButtonBar(Composite parent) {
+    protected override void createButtonsForButtonBar(Composite parent) {
         // cancel button
         createCancelButton(parent);
     }
@@ -443,7 +443,7 @@
     /*
      * (non-Javadoc) Method declared on Dialog.
      */
-    protected Control createDialogArea(Composite parent) {
+    protected override Control createDialogArea(Composite parent) {
         setMessage(DEFAULT_TASKNAME, false);
         createMessageArea(parent);
         // Only set for backwards compatibility
@@ -471,7 +471,7 @@
      *
      * @see dwtx.jface.window.Window#getInitialSize()
      */
-    protected Point getInitialSize() {
+    protected override Point getInitialSize() {
         Point calculatedSize = super.getInitialSize();
         if (calculatedSize.x < 450) {
             calculatedSize.x = 450;
@@ -631,7 +631,7 @@
      *
      * @see dwtx.jface.dialogs.IconAndMessageDialog#getImage()
      */
-    protected Image getImage() {
+    protected override Image getImage() {
         return getInfoImage();
     }
 
@@ -670,7 +670,7 @@
      *
      * @see dwtx.jface.window.Window#open()
      */
-    public int open() {
+    public override int open() {
         // Check to be sure it is not already done. If it is just return OK.
         if (!getOpenOnRun()) {
             if (getNestingDepth() is 0) {