org.eclipse.xtext.xbase.validation.XbaseDiagnostician Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2013 itemis AG (http://www.itemis.eu) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.eclipse.xtext.xbase.validation;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EValidator;
import org.eclipse.xtext.common.types.JvmFormalParameter;
import org.eclipse.xtext.common.types.TypesPackage;
import org.eclipse.xtext.validation.CancelableDiagnostician;
import org.eclipse.xtext.xbase.XClosure;
import com.google.common.annotations.Beta;
import com.google.inject.Inject;
/**
* A customized diagnostician that explicitly traverses derived contained elements
* if they are not contained in the contents of an EObject. This is for EMF 2.5 compatibility.
*
* @since 2.4
* @author Sebastian Zarnekow - Initial contribution and API
*/
@Beta
public class XbaseDiagnostician extends CancelableDiagnostician {
@Inject
public XbaseDiagnostician(EValidator.Registry registry) {
super(registry);
}
@Override
protected boolean doValidateContents(EObject eObject, DiagnosticChain diagnostics, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy