ereference property should pop up selection window but shows a dropdown list and does not set member [message #66786] |
Sat, 21 October 2006 18:37 |
Felix Dorner Messages: 676 Registered: July 2009 |
Senior Member |
|
|
Hi,
i have a very strange behaviour here:
Given a simple model A---->B, an A is having an arbitrary number of B´s
non containment.
Editing such a model with the EMF Tree editor works cool:
I create an A, and several B´s. In A´s property viev selecting the right
feature (the reference) shows a Button with three dots, and pressing
that button allows me to select some of my B´s to be members of the
reference.
In my GMF based Editor I can create A Nodes, and B Nodes, these map
correctly to the domain model. Now selecting an A Node and selecting the
reference feature in the property view strangely gives me not a button
to select the reference members but a dropdown list. The list contains
all the B´s in the model. I can select one of the B´s but this does not
touch the model in any way. Even if it would change the model it would
be incorrect behavior, since it should be possible to select a set of
B´s to be members of the reference.
This is by no means the behaviour I expect, also because I thought that
the property view code is shared between emf and gmf. (i.e. GMF reuses
the emf.edit/editor code.
Thanks for any suggestions,
Felix
|
|
|
Re: ereference property should pop up selection window but shows a dropdown list and does not set me [message #66800 is a reply to message #66786] |
Sat, 21 October 2006 20:15 |
Eclipse User |
|
|
|
Originally posted by: tobk.gmx.de
Felix Dorner wrote:
> Hi,
>
> i have a very strange behaviour here:
> [...]
>
> Thanks for any suggestions,
>
> Felix
Hello Felix,
this is a well-known GMF bug. If you look in the Error Log View you'll
notive an exception happening each time you try to set the value.
In GMF 2.0 (Milestone 2 Stream Stable Build) the GMF editor provides a
standard EMF-properties-view, too, and you can set the value.
Unfortunately the EMF-properties view does not provide the capability to
extend referenced eObjects (as the GMF properties view does). So it's kinda
hard to edit the values of referenced non-graphical helping classes. To get
an additional GMF-outline (with the same bug as in GMF 1.0) you can add a
standard propertie source with identifier 'advanced' in the gmfgen (in 2.0
only). Remenber to keep the PropertiesProvider from the GMF 1.0 build and
to copypaste the extension point in the plugin.xml.
I'm not sure, but I hope that the EMF properties view is only a temporary
bugfix and that the final GMF 2.0 will provide a fixed version of the GMF
properties view, including extendable references.
tobias
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03623 seconds