Mercurial > projects > dwt2
comparison org.eclipse.equinox.common/src/org/eclipse/core/runtime/IProgressMonitorWithBlocking.d @ 105:bbe49769ec18
...
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 08 Nov 2009 12:42:30 +0100 |
parents | bc29606a740c |
children |
comparison
equal
deleted
inserted
replaced
104:88652073d1c2 | 105:bbe49769ec18 |
---|---|
2 * Copyright (c) 2003, 2006 IBM Corporation and others. | 2 * Copyright (c) 2003, 2006 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM - Initial API and implementation | 9 * IBM - Initial API and implementation |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
12 *******************************************************************************/ | 10 *******************************************************************************/ |
13 module org.eclipse.core.runtime.IProgressMonitorWithBlocking; | 11 // Port to the D programming language: |
14 | 12 // Frank Benoit <benoit@tionex.de> |
15 import org.eclipse.core.runtime.IProgressMonitor; | 13 module org.eclipse.core.runtimeIProgressMonitorWithBlocking; |
16 import org.eclipse.core.runtime.IStatus; | |
17 | 14 |
18 import java.lang.all; | 15 import java.lang.all; |
16 | |
17 import org.eclipse.core.runtimeIProgressMonitor; // packageimport | |
18 import org.eclipse.core.runtimeIStatus; // packageimport | |
19 | 19 |
20 /** | 20 /** |
21 * An extension to the IProgressMonitor interface for monitors that want to | 21 * An extension to the IProgressMonitor interface for monitors that want to |
22 * support feedback when an activity is blocked due to concurrent activity in | 22 * support feedback when an activity is blocked due to concurrent activity in |
23 * another thread. | 23 * another thread. |
46 * If the caller is blocked by a currently executing job, this method will return | 46 * If the caller is blocked by a currently executing job, this method will return |
47 * an <code>IJobStatus</code> indicating the job that is currently blocking | 47 * an <code>IJobStatus</code> indicating the job that is currently blocking |
48 * the caller. If this blocking job is not known, this method will return a plain | 48 * the caller. If this blocking job is not known, this method will return a plain |
49 * informational <code>IStatus</code> object. | 49 * informational <code>IStatus</code> object. |
50 * </p> | 50 * </p> |
51 * | 51 * |
52 * @param reason an optional status object whose message describes the | 52 * @param reason an optional status object whose message describes the |
53 * reason why this operation is blocked, or <code>null</code> if this | 53 * reason why this operation is blocked, or <code>null</code> if this |
54 * information is not available. | 54 * information is not available. |
55 * @see #clearBlocked() | 55 * @see #clearBlocked() |
56 */ | 56 */ |
58 | 58 |
59 /** | 59 /** |
60 * Clears the blocked state of the running operation. If a running | 60 * Clears the blocked state of the running operation. If a running |
61 * operation ever calls <code>setBlocked</code>, it must eventually call | 61 * operation ever calls <code>setBlocked</code>, it must eventually call |
62 * <code>clearBlocked</code> before the operation completes. | 62 * <code>clearBlocked</code> before the operation completes. |
63 * | 63 * |
64 * @see #setBlocked(IStatus) | 64 * @see #setBlocked(IStatus) |
65 */ | 65 */ |
66 public void clearBlocked(); | 66 public void clearBlocked(); |
67 | 67 |
68 } | 68 } |