Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Multilevel inheritance
Multilevel inheritance [message #160233] Wed, 14 November 2007 06:27 Go to next message
Eclipse UserFriend
Originally posted by: mlooise.planet.nl

Hello,



I have a problem with implementing my editor. I have a diagram element which
behaves in a strange way. When you first drag it into the canvas, it doesn't
appear at all, as if it didn't get created. But when you reopen de diagram,
it is there however (it is also created in the xml file). So apparently it
did get created, but just didn't get displayed. It is however placed at the
top of the diagram in the left .. so the positioning of the element also
went wrong.



My guess is that this is caused by the fact that this figure inherits from
another element which also inherits form another element (situation : nodeA
extends nodeB,nodeB extends nodeC).



=======

| NodeC |

=======

^

|

=======

| NodeB |

=======

^

|

=======

| NodeA |

=======



The element which is at the bottom of the inheritance chain (nodeA) isn't
properly displayed. The intermediate nodes (nodeB) are displayed correctly
and function perfectly. Is there an extra setting in order for this to get
functioning? Or is it simply not supported yet maybe? I was wondering if
anyone of you has ever tried doing something like this?



And secondly, where can I try start searching for the cause of this error,
when an element is not displayed directly. I really need to get this to
work, so any advice is welcome



Thanks in advance,



Kind regards,



Martin Looise
Re: Multilevel inheritance [message #160378 is a reply to message #160233] Wed, 14 November 2007 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mlooise.planet.nl

What i've discovered until now, is that the entire
CreateGraphicEditPartOperation(View view)

Isn't called when a new object of this type is created. When you close the
diagram, and reload it, then it IS called however. Anyone has any experience
with problems related to this?

Regards,

Martin





"Martin Looise" <mlooise@planet.nl> schreef in bericht
news:fhem3p$nhm$1@build.eclipse.org...
> Hello,
>
>
>
> I have a problem with implementing my editor. I have a diagram element
> which behaves in a strange way. When you first drag it into the canvas, it
> doesn't appear at all, as if it didn't get created. But when you reopen de
> diagram, it is there however (it is also created in the xml file). So
> apparently it did get created, but just didn't get displayed. It is
> however placed at the top of the diagram in the left .. so the positioning
> of the element also went wrong.
>
>
>
> My guess is that this is caused by the fact that this figure inherits from
> another element which also inherits form another element (situation :
> nodeA extends nodeB,nodeB extends nodeC).
>
>
>
> =======
>
> | NodeC |
>
> =======
>
> ^
>
> |
>
> =======
>
> | NodeB |
>
> =======
>
> ^
>
> |
>
> =======
>
> | NodeA |
>
> =======
>
>
>
> The element which is at the bottom of the inheritance chain (nodeA) isn't
> properly displayed. The intermediate nodes (nodeB) are displayed correctly
> and function perfectly. Is there an extra setting in order for this to get
> functioning? Or is it simply not supported yet maybe? I was wondering if
> anyone of you has ever tried doing something like this?
>
>
>
> And secondly, where can I try start searching for the cause of this error,
> when an element is not displayed directly. I really need to get this to
> work, so any advice is welcome
>
>
>
> Thanks in advance,
>
>
>
> Kind regards,
>
>
>
> Martin Looise
>
>
>
>
Re: Multilevel inheritance [message #162583 is a reply to message #160378] Sat, 24 November 2007 21:52 Go to previous message
Eclipse UserFriend
Originally posted by: Sam.sam.org

try that
createViewsAndArrangeCommand

like in mindmap ex
Previous Topic:Where to change attributes from code?
Next Topic:How can I create a choice box for editing model attribute with an Enumemration type?
Goto Forum:
  


Current Time: Tue May 27 13:40:12 EDT 2025

Powered by FUDForum. Page generated in 0.05123 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top