tbe.performEdits(new NullProgressMonitor()); TextBuffer.commitChanges(tb, false, new NullProgressMonitor());
tbe.performEdits(new SubProgressMonitor(pm, 1)); TextBuffer.commitChanges(tb, false, new SubProgressMonitor(pm, 1));
	private static void delete(IFile file, ISourceReference[] nonFields) throws CoreException{		TextBuffer tb= TextBuffer.acquire(file);		try{			TextBufferEditor tbe= new TextBufferEditor(tb);			for (int i= 0; i < nonFields.length; i++) {				Assert.isTrue(! (nonFields[i] instanceof IField));				tbe.add(createDeleteEdit(nonFields[i]));			}			if (! tbe.canPerformEdits())				return; ///XXX can i assert here?			tbe.performEdits(new NullProgressMonitor());				TextBuffer.commitChanges(tb, false, new NullProgressMonitor());		} finally{			if (tb != null)				TextBuffer.release(tb);		}		}