comparison dwtx/jface/util/ISafeRunnableRunner.d @ 4:c87617952847

some JFace modules
author Frank Benoit <benoit@tionex.de>
date Fri, 28 Mar 2008 17:08:33 +0100
parents
children
comparison
equal deleted inserted replaced
3:6518c18a01f7 4:c87617952847
1 /*******************************************************************************
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * Chris Gross (schtoo@schtoo.com) - initial API and implementation
10 * (bug 49497 [RCP] JFace dependency on dwtx.core.runtime enlarges standalone JFace applications)
11 * Port to the D programming language:
12 * Frank Benoit <benoit@tionex.de>
13 *******************************************************************************/
14
15 module dwtx.jface.util.ISafeRunnableRunner;
16
17 import dwtx.core.runtime.ISafeRunnable;
18
19 /**
20 * Runs a safe runnables.
21 * <p>
22 * Clients may provide their own implementation to change
23 * how safe runnables are run from within JFace.
24 * </p>
25 *
26 * @see SafeRunnable#getRunner()
27 * @see SafeRunnable#setRunner(ISafeRunnableRunner)
28 * @see SafeRunnable#run(ISafeRunnable)
29 * @since 3.1
30 */
31 public interface ISafeRunnableRunner {
32
33 /**
34 * Runs the runnable. All <code>ISafeRunnableRunners</code> must catch any exception
35 * thrown by the <code>ISafeRunnable</code> and pass the exception to
36 * <code>ISafeRunnable.handleException()</code>.
37 * @param code the code executed as a save runnable
38 *
39 * @see SafeRunnable#run(ISafeRunnable)
40 */
41 public abstract void run(ISafeRunnable code);
42
43 }