public void applyAll(Collection<? extends IChange> changes) throws BadLocationException {
  final Map<URI,List<IAtomicChange>> changesPerFile=organize(changes);
  for (  URI currURI : changesPerFile.keySet()) {
    final IXtextDocument document=getDocument(currURI);
    applyAllInSameDocument(changesPerFile.get(currURI),document);
  }
}

public void applyAll ( Collection < ? extends IChange > changes ) throws BadLocationException { final Map < URI , List < IAtomicChange > > changesPerFile = organize ( changes ) ; for ( URI currURI : changesPerFile . keySet ( ) ) { final IXtextDocument document = getDocument ( currURI ) ; applyAllInSameDocument ( changesPerFile . get ( currURI ) , document ) ; } }
applies all given changes .
