|
|
|
|
|
Re: Map and ecore [message #421606 is a reply to message #421604] |
Mon, 11 August 2008 13:27 |
Ed Merks Messages: 33142 Registered: July 2009 |
Senior Member |
|
|
Guillaume,
Comments below.
Guillaume SOLDERA wrote:
> Ed Merks wrote:
>
>> Guillaume,
>
>> Comments below.
>
>
>>> In 'Property' tabs, when I click on my attribute to edit this
>>> attribute, a popup is opened. This popup contains 2 sets : 'Choices'
>>> and 'Feature'. Theses sets are empty.
>> Did you make your map feature a containment reference? I don't
>> think you should expect to be editing the map as a whole but rather
>> be creating new entries via the normal child creation approach and
>> the using the properties view to set the key and value (as in the
>> Sample Ecore Editor). Give you likely made a mistake, you'll
>> probably need to fiddle with the GenFeature properties for this
>> feature to make sure Children and Child Creation are enabled and to
>> turn off the property support for it.
>
> I did these modifications and generated 'editor code'. It works fine
> for this application.
>
> But I work on a RCP application and I don't have a 'tree'
> representation but a diagram.
>
> Ideally, when I click on the attribute in 'Properties view', I would
> like to open a SWT window with the view of the Map inside.
It's certainly possible to create a specialized dialog cell editor for
that purpose; there was a recent GMF thread about how to do that for
GMF. There's an EMF recipe for this as well...
> An example could be that : in your Eclipse IDE, Windows/Preferences >
> Run/Debug > String Substitution. You have two columns (variable and
> value) and buttons 'New', 'Edit' and 'Remove'. Is it possible to do
> that or something like that.
Certainly, but you'd need to build this yourself. An EMap is
effectively a list of contained map entry instances; you might want to
use data binding for building something like this. You'd want the
dialog to be working with a copy of the list and its content and then
use a command to update the map as a whole when the user clicks OK.
>
> Thanks
>
> Guillaume
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03070 seconds