Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323324

Summary: [editor,environment,registry] Support a Complete OCL registration
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Ed Willink CLA 2010-08-22 03:15:45 EDT
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.
Comment 1 Ed Willink CLA 2011-11-08 12:05:12 EST
(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.