Fixed exceptions when closing diagram by removing EContentAdapter from
Visualizers on deactivate of the editparts.
Generated source code.