.getMessage(), e));
}
// Construct a delta to indicate that the source attachment has changed
JavaModelManager modelManager = JavaModelManager.getJavaModelManager();
JavaElementDelta delta = new JavaElementDelta(modelManager.getJavaModel());
delta.changed(root.getJavaProject(),
IJavaElementDelta.F_RESOLVED_CLASSPATH_CHANGED);
delta.changed(root, IJavaElementDelta.F_SOURCEATTACHED);
// Notify Eclipse that the source attachment has changed
DeltaProcessor deltaProcessor = modelManager.getDeltaProcessor();
deltaProcessor.fire(delta, ElementChangedEvent.POST_CHANGE);
}