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

Bug 324924

Summary: [editor] EReference.eKeys not support in OCLinEcore
Product: [Modeling] OCL Reporter: Ed Willink <ed>
Component: CoreAssignee: OCL Inbox <mdt-ocl-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sforbes, tonny.madsen
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Support for a key syntax none

Description Ed Willink CLA 2010-09-10 01:48:13 EDT
Add a concrete syntax for EReference.eKeys to exploit the support already present in the CS.
Comment 1 Ed Willink CLA 2010-09-10 05:11:46 EDT
Created attachment 178593 [details]
Support for a key syntax

Attached supports a key sub-clause of a reference.

But the new keyword 'key' will hide old usages. Need to solve Xtext identifier re-use.

Pretty printing is missing.

Patch only has source files, OCLinEcore needs regeneration.
Comment 2 Tonny Madsen CLA 2010-11-18 11:39:05 EST
Can this please be part of Indigo?
Comment 3 Tonny Madsen CLA 2010-11-18 11:43:39 EST
I want to play around with the attached patch, but... do you have how-to-build? :-)

I miss an MWE/MWE2 file...
Comment 4 Ed Willink CLA 2010-11-20 08:01:23 EST
The MWE2 scripts are in the o.e.o.examples.build plugin, thereby avoiding gratuitous build-only dependencies in the editor plugins.

There is major work going on behind the scenes to bridge the gap between the CST-only Xtext editors and a prototype for a potential OMG-specified interchangeable AST. Once this is done these rather easy bugs will be fixed. I hope this will be in Indigo.

If you want to play and contribute a patch it could be in 3.0.2 Examples.
Comment 5 Ed Willink CLA 2011-05-05 14:14:49 EDT
Committed to HEAD for Indigo RC1.
Comment 6 Ed Willink CLA 2011-05-27 03:13:39 EDT
Closing