|Re: Extending EcoreTools with new EAnnotation-based layers [message #1701733 is a reply to message #1697795]
||Wed, 15 July 2015 09:47
| Cedric Brun
Registered: July 2009
you can define an extension which can contribute a Layer (with Mappings) and Tools through another plugin (use the Viewpoint Specification Project wizard to create it).
Almost everything happens in the .odesign file, name your Group, Viewpoint then a DiagramExtension which can specify the contributed layers and mappings.
Once this is done, a user has to explicitely enable your Viewpoint (and might have to enable your layer -- depending on the default enablement status of your layer) the EcoreTools diagram editor will then adapt its behavior.
There is an example of that in ecore.odesign with the "Archetype" Viewpoint which adds style customizations and new tools. You can do the same from another plugin.
http://cedric.brun.io news and articles on eclipse and eclipse modeling.
Powered by FUDForum
. Page generated in 0.01997 seconds