View target = view;
OntoUML.diagram.part.ValidationMarker.removeAllMarkers(diagramEditPart
.getViewer());
Diagnostic diagnostic = runEMFValidator(view);
createMarkers(target, diagnostic, diagramEditPart);
IBatchValidator validator = (IBatchValidator) ModelValidationService
.getInstance().newValidator(EvaluationMode.BATCH);
validator.setIncludeLiveConstraints(true);
if (view.isSetElement() && view.getElement() != null) {
IStatus status = validator.validate(view.getElement());
createMarkers(target, status, diagramEditPart);
}
OntoUML.diagram.providers.OntoUMLValidationDecoratorProvider
.refreshDecorators(view);
for (Iterator it = view.eAllContents(); it.hasNext();) {