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 be36943..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,18 +17,21 @@ 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) + /* + * (non-Javadoc) + * * @see net.sourceforge.phpdt.internal.core.JavaModelOperation#executeOperation() */ protected void executeOperation() throws JavaModelException { @@ -36,10 +39,10 @@ public class BatchOperation extends JavaModelOperation { 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,8 +51,10 @@ public class BatchOperation extends JavaModelOperation { } } } - - /* (non-Javadoc) + + /* + * (non-Javadoc) + * * @see net.sourceforge.phpdt.internal.core.JavaModelOperation#verify() */ protected IJavaModelStatus verify() { @@ -57,5 +62,4 @@ public class BatchOperation extends JavaModelOperation { return JavaModelStatus.VERIFIED_OK; } - }