### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: model/org/eclipse/jdt/core/ICompilationUnit.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/core/ICompilationUnit.java,v retrieving revision 1.68 diff -u -r1.68 ICompilationUnit.java --- model/org/eclipse/jdt/core/ICompilationUnit.java 27 Jun 2008 16:04:01 -0000 1.68 +++ model/org/eclipse/jdt/core/ICompilationUnit.java 28 Jan 2009 14:31:42 -0000 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2008 IBM Corporation and others. + * Copyright (c) 2000, 2009 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 @@ -64,6 +64,14 @@ /** * Applies a text edit to the compilation unit's buffer. + *

+ * Note that the edit is simply applied to the compilation unit's buffer. + * In particular the undo edit is not grouped with previous undo edits + * if the buffer doesn't implement {@link IBuffer.ITextEditCapability}. + * If it does, the exact semantics for grouping undo edit depends + * on how {@link IBuffer.ITextEditCapability#applyTextEdit(TextEdit, IProgressMonitor)} + * is implemented. + *

* * @param edit the edit to apply * @param monitor the progress monitor to use or null if no progress should be reported