private class NotifyingReconcileOperation extends SourceFile.ReconcileOperation {
@Override
public void reconcile(final Object ast, final NonExpiringSnapshot snapshot,
final boolean forced) throws CoreException {
final HandleDeltaBuilder deltaBuilder = new HandleDeltaBuilder(ErlSource.this);
super.reconcile(ast, snapshot, forced);
deltaBuilder.buildDelta();
if (!deltaBuilder.getDelta().isEmpty()) {
final ElementChangeEvent event = new ElementChangeEvent(
IElementChangeEvent.POST_RECONCILE, deltaBuilder.getDelta());
ErlModelManager.INSTANCE.fireElementChangeEvent(event);
}
}