.getModelManager().getModelForEdit(testFile);
try {
final IDocument document = modelForEdit.getStructuredDocument();
String beforeFormat = document.get();
final PhpFormatProcessorImpl formatter = new PhpFormatProcessorImpl();
perfMonitor.execute("PerformanceTests.testFormatter" + "_"
+ fileName, new Operation() {
public void run() throws Exception {
formatter.formatDocument(document, 0, document.getLength());
}
}, 1, 10);
// change the document text as was before
// the formatting