X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BatchOperation.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BatchOperation.java index 5f3e020..85e4221 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BatchOperation.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/core/BatchOperation.java @@ -17,29 +17,32 @@ import org.eclipse.core.resources.IResourceStatus; import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.runtime.CoreException; - /** - * An operation created as a result of a call to JavaCore.run(IWorkspaceRunnable, IProgressMonitor) - * that encapsulates a user defined IWorkspaceRunnable. + * An operation created as a result of a call to + * JavaCore.run(IWorkspaceRunnable, IProgressMonitor) that encapsulates a user + * defined IWorkspaceRunnable. */ public class BatchOperation extends JavaModelOperation { protected IWorkspaceRunnable runnable; + public BatchOperation(IWorkspaceRunnable runnable) { this.runnable = runnable; } - /* (non-Javadoc) - * @see org.eclipse.jdt.internal.core.JavaModelOperation#executeOperation() + /* + * (non-Javadoc) + * + * @see net.sourceforge.phpdt.internal.core.JavaModelOperation#executeOperation() */ protected void executeOperation() throws JavaModelException { try { - this.runnable.run(fMonitor); + this.runnable.run(progressMonitor); } catch (CoreException ce) { if (ce instanceof JavaModelException) { - throw (JavaModelException)ce; + throw (JavaModelException) ce; } else { if (ce.getStatus().getCode() == IResourceStatus.OPERATION_FAILED) { - Throwable e= ce.getStatus().getException(); + Throwable e = ce.getStatus().getException(); if (e instanceof JavaModelException) { throw (JavaModelException) e; } @@ -48,14 +51,15 @@ public class BatchOperation extends JavaModelOperation { } } } - - /* (non-Javadoc) - * @see org.eclipse.jdt.internal.core.JavaModelOperation#verify() + + /* + * (non-Javadoc) + * + * @see net.sourceforge.phpdt.internal.core.JavaModelOperation#verify() */ protected IJavaModelStatus verify() { // cannot verify user defined operation return JavaModelStatus.VERIFIED_OK; } - }