### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/compiler/ReconcileContext.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/compiler/ReconcileContext.java,v retrieving revision 1.16 diff -u -r1.16 ReconcileContext.java --- model/org/eclipse/jdt/core/compiler/ReconcileContext.java 26 Nov 2009 16:20:02 -0000 1.16 +++ model/org/eclipse/jdt/core/compiler/ReconcileContext.java 6 Jan 2010 17:23:36 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 IBM Corporation and others. + * Copyright (c) 2005, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -118,7 +118,24 @@ public boolean isResolvingBindings() { return this.operation.resolveBindings; } - +/** + * Returns whether the reconcile operation has statement recovery enabled. + * + * @return whether the reconcile operation has statement recovery enabled + * @since 3.6 + */ +public boolean hasStatementRecovery() { + return (this.operation.reconcileFlags & ICompilationUnit.ENABLE_STATEMENTS_RECOVERY) != 0; +} +/** + * Returns whether the reconcile operation has ignore method bodies enabled. + * + * @return whether the reconcile operation has ignore method bodies enabled + * @since 3.6 + */ +public boolean hasIgnoreMethodBodies() { + return (this.operation.reconcileFlags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0; +} /** * Returns the delta describing the change to the working copy being reconciled. * Returns null if there is no change.