// if (true){
// return null;
// }
if (!toInstrument.isEmpty()) {
try {
CallDictionary ds = DictionaryManager
.getCallDictionary(project);
Instrumentor t = new Instrumentor(ds, create);
for (IFile f : toInstrument) {
try {
t.instrumentClass1(f);
} catch (IOException e) {
Activator.getDefault().log(e);
throw new CoreException(
new Status(IStatus.ERROR, Activator.PLUGIN_ID,
IResourceStatus.BUILD_FAILED, e
.getMessage(), e));
}
}
ds.commit();
} catch (IOException e) {
StartProfilingAction.rebuild(create);
throw new CoreException(new Status(IStatus.ERROR,
Activator.PLUGIN_ID, IResourceStatus.BUILD_FAILED, e