final ParseException ex(String key, int loc) { return new ParseException(EcorePlugin.INSTANCE.getString(key), loc); }
final ParseException ex(String key, int loc) { return new ParseException(EcorePlugin.INSTANCE.getString(key), loc); }
/** * @since 2.4 */ public BasicDiagnostic createDefaultDiagnostic(EObject eObject) { return new BasicDiagnostic (EObjectValidator.DIAGNOSTIC_SOURCE, 0, EcorePlugin.INSTANCE.getString("_UI_DiagnosticRoot_diagnostic", new Object[] { getObjectLabel(eObject) }), new Object [] { eObject }); }
/** * @since 2.4 */ public BasicDiagnostic createDefaultDiagnostic(EDataType eDataType, Object value) { return new BasicDiagnostic (EObjectValidator.DIAGNOSTIC_SOURCE, 0, EcorePlugin.INSTANCE.getString("_UI_DiagnosticRoot_diagnostic", new Object [] { getValueLabel(eDataType, value) }), new Object [] { value, eDataType }); }
/** * @since 2.4 */ public BasicDiagnostic createDefaultDiagnostic(EDataType eDataType, Object value) { return new BasicDiagnostic (EObjectValidator.DIAGNOSTIC_SOURCE, 0, EcorePlugin.INSTANCE.getString("_UI_DiagnosticRoot_diagnostic", new Object [] { getValueLabel(eDataType, value) }), new Object [] { value, eDataType }); }
protected void reportIgnoredEntry(Map.Entry<String, String> entry, DiagnosticChain diagnostics, String key, Object... substitutions) { diagnostics.add( createDiagnostic(Diagnostic.WARNING, IGNORED_ENTRY, EcorePlugin.INSTANCE.getString(key, substitutions), entry, EcorePackage.Literals.ESTRING_TO_STRING_MAP_ENTRY__KEY)); }
/** * @since 2.4 */ public BasicDiagnostic createDefaultDiagnostic(EObject eObject) { return new BasicDiagnostic (EObjectValidator.DIAGNOSTIC_SOURCE, 0, EcorePlugin.INSTANCE.getString("_UI_DiagnosticRoot_diagnostic", new Object[] { getObjectLabel(eObject) }), new Object [] { eObject }); }
protected void reportBadValue(Object value, DiagnosticChain diagnostics, int severity, String key, Object... substitutions) { diagnostics.add(createDiagnostic(severity, INVALID_VALUE_LITERAL, EcorePlugin.INSTANCE.getString(key, substitutions), value)); }
/** * @since 2.6 */ protected static void reportInvariantDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateException_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateException(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, Throwable throwable) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateException_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), throwable.getClass().getName() + ": " + throwable.getLocalizedMessage() }), new Object [] { eObject, throwable })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateNotFound_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateNotFound(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code, String validationDelegate) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_InvariantDelegateNotFound_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context), validationDelegate }), new Object [] { eObject })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context) }), new Object [] { eObject })); }
/** * @since 2.6 */ protected static void reportInvariantDelegateViolation(EClass eClass, EObject eObject, DiagnosticChain diagnostics, Map<Object, Object> context, EOperation invariant, int severity, String source, int code) { diagnostics.add (new BasicDiagnostic (severity, source, code, EcorePlugin.INSTANCE.getString("_UI_GenericInvariant_diagnostic", new Object[] { invariant.getName(), getObjectLabel(eObject, context) }), new Object [] { eObject })); }
TypesValidator.COLLECTION_TYPE__NO_INVALID_VALUES, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkNoInvalidValues", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(collectionType, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{collectionType}));
TypesValidator.COLLECTION_TYPE__NO_INVALID_VALUES, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkNoInvalidValues", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(collectionType, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{collectionType}));
TypesValidator.MESSAGE_TYPE__EXCLUSIVE_SIGNATURE, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkExclusiveSignature", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(messageType, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{messageType}));
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * @param eivL_event The receiving '<em><b>EIVL event</b></em>' model object. * @param diagnostics The chain of diagnostics to which problems are to be appended. * @param context The cache of context-specific information. * <!-- end-model-doc --> * @generated NOT */ public static boolean validateCode(EIVL_event eivL_event, DiagnosticChain diagnostics, Map<Object, Object> context) { if ((eivL_event != null) && (eivL_event.getCode() != null) && (TimingEvent.get(eivL_event.getCode()) == null)) { if (diagnostics != null) { diagnostics.add(new BasicDiagnostic( Diagnostic.ERROR, DatatypesValidator.DIAGNOSTIC_SOURCE, DatatypesValidator.EIVL_EVENT__CODE, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE.getString( "_UI_GenericInvariant_diagnostic", new Object[] { "validateCode", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(eivL_event, context) }), new Object[] { eivL_event })); } return false; } return true; }
ExpressionsValidator.COLLECTION_LITERAL_EXP__BAG_KIND, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkBagKind", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(collectionLiteralExp, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{collectionLiteralExp}));
ExpressionsValidator.COLLECTION_LITERAL_EXP__SEQUENCE_KIND, org.eclipse.emf.ecore.plugin.EcorePlugin.INSTANCE .getString( "_UI_GenericInvariant_diagnostic", new Object[]{"checkSequenceKind", org.eclipse.emf.ecore.util.EObjectValidator.getObjectLabel(collectionLiteralExp, context)}), //$NON-NLS-1$ //$NON-NLS-2$ new Object[]{collectionLiteralExp}));