Move OCL out of .ecore into separate .oclinecore file

Issue #17 resolved
Matthias Schoettle created an issue

Having the OCL concrete syntax directly in the .ecore file is apparently a bad idea.

I see only one problem with the attached; you have stored OCLinEcore concrete syntax as a .ecore file, so opening the file with any EMF tool bombs. Use .oclinecore for OCLinEcore concrete syntax.

Move it to separate file. If I am not mistaken this also allows for formatting and comments.

Comments (5)

  1. Matthias Schoettle reporter

    This might not be feasible, because OCL in a separate file won't be executed automatically. At least not currently. An option would be to modify the generated RamValidator in ca.mcgill.cs.sel.ram.util.

  2. Matthias Schoettle reporter

    Resolved with new validator project. Except that the default EMF validation (e.g., in the generated editor) will not evaluate the .ocl file(s) of the validator project.

  3. Log in to comment