/** * @since 2.4 */ protected void error(String message, EObject source, EStructuralFeature feature) { error(message, source, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX); }
@Override public void error(String message, EObject source, EStructuralFeature feature, String code, String... issueData) { super.error(message, source, feature, code, issueData); } }
protected void error(String message, EStructuralFeature feature) { error(message, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, null); }
protected void error(String message, EStructuralFeature feature, int index) { error(message, feature, index, null); }
protected void error(String message, EStructuralFeature feature, String code, String... issueData) { error(message, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, code, issueData); }
protected void error(String message, EObject source, EStructuralFeature feature, int index) { error(message, source, feature, index, null); }
protected void error(String message, EStructuralFeature feature, int index, String code, String... issueData) { error(message, state.get().currentObject, feature, index, code, issueData); }
protected void error(String message, String issueCode, JvmParameterizedTypeReference typeReference) { EObject rootContainer = EcoreUtil.getRootContainer(typeReference); Resource resource = rootContainer.eResource(); if (resource.getContents().get(0) == rootContainer) { super.error(message, typeReference, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, -1, issueCode); } else { EObject container = typeReference; EObject sourceElement = jvmModelAssociations.getPrimarySourceElement(container); container = container.eContainer(); while(sourceElement == null && container != null) { sourceElement = jvmModelAssociations.getPrimarySourceElement(container); container = container.eContainer(); } if (sourceElement != null) { error(message, sourceElement, sourceElement.eClass().getEStructuralFeature("name"), -1, issueCode); } else { super.error(message, typeReference, TypesPackage.Literals.JVM_PARAMETERIZED_TYPE_REFERENCE__TYPE, -1, issueCode); } } }