Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Ecore Tools - Graphical editor extension(Extending standard graphical ecore diagram editor)
Ecore Tools - Graphical editor extension [message #1091712] Wed, 21 August 2013 18:08 Go to next message
Han G is currently offline Han G
Messages: 11
Registered: August 2013
Junior Member
Hello,

I'd like to extend/modify the graphical ecore diagram editor provided by Ecore Tools. For example: While hovering over a class attribute it should display the entries of the EAnnotation attached to that attribute (not just "attributes").

I thought this could be done by creating a custom EAttributeEditPart class and use this instead of the default one (just create that class and change the type="VISUAL_ID" property in the *.ecorediag file).

My problem is that I would have to somehow register such a custom class at the EcoreVisualIDRegistry which doesn't seem to accept any extensions.

Is there a way around this (perhaps exchange the registry?) or any other solution for my problem without writing my own ecore diagram editor?

Regards,
han
Re: Ecore Tools - Graphical editor extension [message #1092705 is a reply to message #1091712] Fri, 23 August 2013 01:38 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25218
Registered: July 2009
Senior Member
Han,

Sorry the Ecore Tools editor is not designed to be extensible in this way.

On 22/08/2013 12:08 AM, Han G wrote:
> Hello,
>
> I'd like to extend/modify the graphical ecore diagram editor provided
> by Ecore Tools. For example: While hovering over a class attribute it
> should display the entries of the EAnnotation attached to that
> attribute (not just "attributes").
>
> I thought this could be done by creating a custom EAttributeEditPart
> class and use this instead of the default one (just create that class
> and change the type="VISUAL_ID" property in the *.ecorediag file).
>
> My problem is that I would have to somehow register such a custom
> class at the EcoreVisualIDRegistry which doesn't seem to accept any
> extensions.
>
> Is there a way around this (perhaps exchange the registry?) or any
> other solution for my problem without writing my own ecore diagram
> editor?
>
> Regards,
> han
Previous Topic:[Texo] Autogenerated addTo... fails silently
Next Topic:How can i have the string array attribute on Ecore?
Goto Forum:
  


Current Time: Mon Oct 07 08:30:40 EDT 2013

Powered by FUDForum. Page generated in 0.13441 seconds