eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[oclinecore] Add ExtendedMetadata annotation syntax #979

Open eclipse-ocl-bot opened 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 390244 | | Status | NEW | | Importance | P3 normal | | Reported | Sep 24, 2012 12:37 EDT | | Modified | Sep 28, 2012 16:07 EDT | | Reporter | Ed Willink |

Description

Add support for http:///org/eclipse/emf/ecore/util/ExtendedMetaData annotations so that XSD/Ecore mapper look better.

eclipse-ocl-bot commented 1 month ago

By David Rees on Sep 28, 2012 13:16

See thread http://www.eclipse.org/forums/index.php/m/923058/ for background.

eclipse-ocl-bot commented 1 month ago

By David Rees on Sep 28, 2012 13:20

Just an FYI, also see how EuGENia uses annotations (http://www.eclipse.org/epsilon/doc/articles/eugenia-gmf-tutorial/). They just add the namespace to indicate tagging for the element. OCLinEcore seems to handle them fine, so there is no special mapping needed, but I thought I would point it out since its unusual.

eclipse-ocl-bot commented 1 month ago

By David Rees on Sep 28, 2012 16:07

It would also be nice if annotations could be placed on the same line like EMFatic as well. Right now annotations from a XSD2Ecore create more lines than the actual Ecore. For example:

class Parent\ {\ annotation 'http:///org/eclipse/emf/ecore/util/ExtendedMetaData'\ (\ name = 'Parent',\ kind = 'elementOnly' );\ attribute name : 'ecore.xml.type'::String { ordered }\ {\ annotation 'http:///org/eclipse/emf/ecore/util/ExtendedMetaData'\ (\ kind = 'element',\ name = 'name' );\ }\ property children : Child[*] { ordered composes !resolve }\ {\ annotation 'http:///org/eclipse/emf/ecore/util/ExtendedMetaData'\ (\ kind = 'element',\ name = 'children' );\ }\ }