problems with phantom elements [message #156802] |
Tue, 23 October 2007 11:05  |
Eclipse User |
|
|
|
Originally posted by: orlando.opencanarias.com
Hello All,
I'm using phantom nodes in my GMF editor but there seems to
be a problem with it. I'll try to explain it with an
example:
I've got a metaclass A with a containment reference to B.
B is a phantom element so I want its instances to be shown
at the same level as A's; connected with them through a
link.
A third metaclass M corresponds to the diagram element; in
the metamodel, M is connected to A with a containment
reference.
Well, I generate a GMF editor and all seems to be ok:
When I generate a diagram from a model with more
than one instance of M, the editor naturally asks
for the 'm' to become diagram element.
The diagram will show properly all A instances ('as')
children of 'm' as well as all B instances ('bs')
children of those a.
The problem is that also 'bs' descending from
other 'm' elements of the model (that have nothing to do
with the actual diagram) are shown!!!
These misplaced 'bs' appear isolated and not connected
to any 'a' within the actual diagram; this makes sense
as their parent 'a' are not shown within the diagram.
I would appreciate any tip about this bizarre behavior
Bests,
Orlando.
|
|
|
|
Re: problems with phantom elements [message #156849 is a reply to message #156810] |
Tue, 23 October 2007 13:57  |
Eclipse User |
|
|
|
Originally posted by: orlando.opencanarias.com
Done! Many thanks Alex...
Orlando.
On Tue, 23 Oct 2007 15:37:26 +0000, Alex Shatalin wrote:
> Hello Orlando Avila-Garcia,
>
> You can modify generated ???DiagramUpdater.getPhantomNodesIterator() method
> to filter out incorrect 'bs'.
>
> -----------------
> Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.03679 seconds