Open eclipse-ocl-bot opened 6 days ago
By Ed Willink on Nov 08, 2011 12:05
(In reply to comment #0)
Pull: One possible solution is to add an additional 'import' EAnnotation so that a meta-model rereferences its Complete OCL counterpart.
Perhaps a genmodel GenAnnotation.
| --- | --- | | Bugzilla Link | 323324 | | Status | NEW | | Importance | P3 enhancement | | Reported | Aug 22, 2010 03:15 EDT | | Modified | Apr 14, 2012 05:27 EDT | | Version | 3.0.0 | | Reporter | Ed Willink |
Description
The OCL Interactive Console fails to support Complete OCL documents becuase there is no mechanism for a user to 'load' the Complete OCL document.
A similar problem occurs for any other use of a UML/Ecore meta-model for which Complete OCL is provided. This will most opbviously ocxcur in any validation context for which the OCL delegate registrations activate OCL.
Pull: One possible solution is to add an additional 'import' EAnnotation so that a meta-model rereferences its Complete OCL counterpart.
However user-defined Complete OCL could be added to e.g. Ecore.ecore which clearly cannot be modified to import every possible user's Complete OCL.
Push: If the OCL Model Registry supports a Complete OCL registration for a meta-model, then the OCL environment need only lookup trhe registration and any OCL using tool is automatically enhanced. The user just needs to make the OCL Registry entry, possibly aided by a Complete OCL editor wizard/warning.