import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.jface.operation.IRunnableWithProgress;
-
/**
- * An <code>IRunnableWithProgress</code> that adapts and <code>IWorkspaceRunnable</code>
- * so that is can be executed inside <code>IRunnableContext</code>. <code>OperationCanceledException</code>
- * thrown by the apapted runnabled are cought and rethrown as a <code>InterruptedException</code>.
+ * An <code>IRunnableWithProgress</code> that adapts and
+ * <code>IWorkspaceRunnable</code> so that is can be executed inside
+ * <code>IRunnableContext</code>. <code>OperationCanceledException</code>
+ * thrown by the apapted runnabled are cought and rethrown as a
+ * <code>InterruptedException</code>.
*/
public class WorkbenchRunnableAdapter implements IRunnableWithProgress {
-
+
private IWorkspaceRunnable fWorkspaceRunnable;
-
+
public WorkbenchRunnableAdapter(IWorkspaceRunnable runnable) {
- fWorkspaceRunnable= runnable;
+ fWorkspaceRunnable = runnable;
}
/*
* @see IRunnableWithProgress#run(IProgressMonitor)
*/
- public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
+ public void run(IProgressMonitor monitor) throws InvocationTargetException,
+ InterruptedException {
try {
PHPeclipsePlugin.run(fWorkspaceRunnable, monitor);
} catch (OperationCanceledException e) {
}
}
-