public class ValidIdConstraint extends AbstractModelConstraint {
@Override
public IStatus validate(IValidationContext ctx) {
EObject eObj = ctx.getTarget();
EMFEventType eType = ctx.getEventType();
// In the case of batch mode.
if (eType == EMFEventType.NULL) {
String id = null;
if (eObj instanceof BaseElement) {