X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/WorkbenchRunnableAdapter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/WorkbenchRunnableAdapter.java index 7c4ae96..88a0d3e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/WorkbenchRunnableAdapter.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/actions/WorkbenchRunnableAdapter.java @@ -12,7 +12,7 @@ package net.sourceforge.phpdt.internal.ui.actions; import java.lang.reflect.InvocationTargetException; -import net.sourceforge.phpeclipse.PHPCore; +import net.sourceforge.phpeclipse.PHPeclipsePlugin; import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.runtime.CoreException; @@ -20,26 +20,28 @@ import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.jface.operation.IRunnableWithProgress; - /** - * An IRunnableWithProgress that adapts and IWorkspaceRunnable - * so that is can be executed inside IRunnableContext. OperationCanceledException - * thrown by the apapted runnabled are cought and rethrown as a InterruptedException. + * An IRunnableWithProgress that adapts and + * IWorkspaceRunnable so that is can be executed inside + * IRunnableContext. OperationCanceledException + * thrown by the apapted runnabled are cought and rethrown as a + * InterruptedException. */ 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 { - PHPCore.run(fWorkspaceRunnable, monitor); + PHPeclipsePlugin.run(fWorkspaceRunnable, monitor); } catch (OperationCanceledException e) { throw new InterruptedException(e.getMessage()); } catch (CoreException e) { @@ -48,4 +50,3 @@ public class WorkbenchRunnableAdapter implements IRunnableWithProgress { } } -