diff org.eclipse.equinox.common/src/org/eclipse/core/runtime/ISafeRunnable.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/ISafeRunnable.d	Sat May 02 11:27:24 2009 +0200
+++ b/org.eclipse.equinox.common/src/org/eclipse/core/runtime/ISafeRunnable.d	Sun Nov 08 12:42:30 2009 +0100
@@ -4,16 +4,17 @@
  * 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.ISafeRunnable;
+// Port to the D programming language:
+//     Frank Benoit <benoit@tionex.de>
+module org.eclipse.core.runtimeISafeRunnable;
 
-// import org.eclipse.swt.internal.Platform;
 import java.lang.all;
+
+
 /**
  * Safe runnables represent blocks of code and associated exception
  * handlers.  They are typically used when a plug-in needs to call some
@@ -35,10 +36,10 @@
      * Platform's run mechanism.
      *
      * @param exception an exception which occurred during processing
-     *      the body of this runnable (i.e., in <code>run()</code>)
+     *		the body of this runnable (i.e., in <code>run()</code>)
      * @see SafeRunner#run(ISafeRunnable)
      */
-    public void handleException(Exception exception);
+    public void handleException(Throwable exception);
 
     /**
      * Runs this runnable.  Any exceptions thrown from this method will
@@ -46,8 +47,8 @@
      * method.
      *
      * @exception Exception if a problem occurred while running this method.
-     *      The exception will be processed by <code>handleException</code>
+     *		The exception will be processed by <code>handleException</code>
      * @see SafeRunner#run(ISafeRunnable)
      */
-    public void run();
+    public void run() ;
 }