diff org.eclipse.equinox.common/src/org/eclipse/core/runtime/NullProgressMonitor.d @ 105:bbe49769ec18

...
author Frank Benoit <benoit@tionex.de>
date Sun, 08 Nov 2009 12:42:30 +0100
parents bc29606a740c
children
line wrap: on
line diff
--- a/org.eclipse.equinox.common/src/org/eclipse/core/runtime/NullProgressMonitor.d	Sat May 02 11:27:24 2009 +0200
+++ b/org.eclipse.equinox.common/src/org/eclipse/core/runtime/NullProgressMonitor.d	Sun Nov 08 12:42:30 2009 +0100
@@ -4,18 +4,18 @@
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
  * http://www.eclipse.org/legal/epl-v10.html
- *
+ * 
  * Contributors:
  *     IBM Corporation - initial API and implementation
- * Port to the D programming language:
- *     Frank Benoit <benoit@tionex.de>
  *******************************************************************************/
-module org.eclipse.core.runtime.NullProgressMonitor;
-
-import org.eclipse.core.runtime.IProgressMonitor;
+// Port to the D programming language:
+//     Frank Benoit <benoit@tionex.de>
+module org.eclipse.core.runtimeNullProgressMonitor;
 
 import java.lang.all;
 
+import org.eclipse.core.runtimeIProgressMonitor; // packageimport
+
 /**
  * A default progress monitor implementation suitable for
  * subclassing.
@@ -37,13 +37,14 @@
      * Constructs a new progress monitor.
      */
     public this() {
+        super();
     }
 
     /**
-     * This implementation does nothing.
+     * This implementation does nothing. 
      * Subclasses may override this method to do interesting
      * processing when a task begins.
-     *
+     * 
      * @see IProgressMonitor#beginTask(String, int)
      */
     public void beginTask(String name, int totalWork) {
@@ -54,7 +55,7 @@
      * This implementation does nothing.
      * Subclasses may override this method to do interesting
      * processing when a task is done.
-     *
+     * 
      * @see IProgressMonitor#done()
      */
     public void done() {
@@ -64,7 +65,7 @@
     /**
      * This implementation does nothing.
      * Subclasses may override this method.
-     *
+     * 
      * @see IProgressMonitor#internalWorked(double)
      */
     public void internalWorked(double work) {
@@ -72,13 +73,13 @@
     }
 
     /**
-     * This implementation returns the value of the internal
+     * This implementation returns the value of the internal 
      * state variable set by <code>setCanceled</code>.
      * Subclasses which override this method should
      * override <code>setCanceled</code> as well.
      *
      * @see IProgressMonitor#isCanceled()
-     * @see IProgressMonitor#setCanceled(bool)
+     * @see IProgressMonitor#setCanceled(boolean)
      */
     public bool isCanceled() {
         return cancelled;
@@ -86,11 +87,11 @@
 
     /**
      * This implementation sets the value of an internal state variable.
-     * Subclasses which override this method should override
+     * Subclasses which override this method should override 
      * <code>isCanceled</code> as well.
      *
      * @see IProgressMonitor#isCanceled()
-     * @see IProgressMonitor#setCanceled(bool)
+     * @see IProgressMonitor#setCanceled(boolean)
      */
     public void setCanceled(bool cancelled) {
         this.cancelled = cancelled;
@@ -100,7 +101,7 @@
      * This implementation does nothing.
      * Subclasses may override this method to do something
      * with the name of the task.
-     *
+     * 
      * @see IProgressMonitor#setTaskName(String)
      */
     public void setTaskName(String name) {
@@ -111,7 +112,7 @@
      * This implementation does nothing.
      * Subclasses may override this method to do interesting
      * processing when a subtask begins.
-     *
+     * 
      * @see IProgressMonitor#subTask(String)
      */
     public void subTask(String name) {
@@ -122,7 +123,7 @@
      * This implementation does nothing.
      * Subclasses may override this method to do interesting
      * processing when some work has been completed.
-     *
+     * 
      * @see IProgressMonitor#worked(int)
      */
     public void worked(int work) {