public void addTextEdit(String name, TextEdit[] edits) { Assert.isNotNull(name); Assert.isNotNull(edits); GroupDescription description= new GroupDescription(name, edits); fTextEditChanges.add(new EditChange(description, this)); if (fEdit == null) { fEdit= new AutoOrganizingTextEdit(); fAutoMode= true; } else { Assert.isTrue(fAutoMode); } for (int i= 0; i < edits.length; i++) { fEdit.add(edits[i]); }
public void addTextEdit(String name, TextEdit edit) { addTextEdit(name, new TextEdit[] {edit});
	public void addTextEdit(String name, TextEdit[] edits) {		Assert.isNotNull(name);		Assert.isNotNull(edits);		GroupDescription description= new GroupDescription(name, edits);		fTextEditChanges.add(new EditChange(description, this));		if (fEdit == null) {			fEdit= new AutoOrganizingTextEdit();			fAutoMode= true;		} else {			Assert.isTrue(fAutoMode);		}		for (int i= 0; i < edits.length; i++) {			fEdit.add(edits[i]);		}	}