Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » figures dont display in M6
figures dont display in M6 [message #177360] Wed, 13 April 2005 20:05 Go to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

Hello,

I just switched to GEF 3.1M6/Eclipse 3.1M6 from my previous
GEF-ALL-I20050215/Eclipse 3.1M5 setup. After this, my graphical editor
does not display the figures added to it any more - even though the
figures do get created.

I would like to add that I decided NOT to extend GraphicalEditor, as the
comments seemed to advise against that. However, I closely followed the
GraphicalEditor example.

I am rather clueless how to track this issue down. Maybe someone can
provide me with a starting point at least.

thanks,
christian
Re: figures dont display in M6 [message #177409 is a reply to message #177360] Wed, 13 April 2005 21:23 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Anything in the error log? What happens when you add new items to the
editor from the palette? Are you able to run our examples successfully?

Consider "special" things that you're doing. Things that we don't do in our
examples. For instance, do you subclass a root editpart? Or use any gef
internal code? Without having any idea of what you're doing or what your
code looks like, it's difficult for us to help you in this situation.

Debug to see if your figures are being painted, and what their bounds are.

"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:d3jud1$3ra$1@news.eclipse.org...
> Hello,
>
> I just switched to GEF 3.1M6/Eclipse 3.1M6 from my previous
> GEF-ALL-I20050215/Eclipse 3.1M5 setup. After this, my graphical editor
> does not display the figures added to it any more - even though the
> figures do get created.
>
> I would like to add that I decided NOT to extend GraphicalEditor, as the
> comments seemed to advise against that. However, I closely followed the
> GraphicalEditor example.
>
> I am rather clueless how to track this issue down. Maybe someone can
> provide me with a starting point at least.
>
> thanks,
> christian
Re: figures dont display in M6 [message #177423 is a reply to message #177409] Wed, 13 April 2005 21:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

ok, I figured out the problem with the help of the debugger (most
indispensable tool for learning GEF/Eclipse). Heres what I found:

When creating a part as a child of the "diagram" part, I did not do a
parent.setLayoutConstraint(..), but only stored the mouse location
inside the child edit part (which later passed it to the corresponding
figure).

I now added a call to setLayoutConstraint(), and all is well. It seems
that XYLayout was changed to ignore figures whose constraint is null.

thanks,
christian

Pratik Shah wrote:
> Anything in the error log? What happens when you add new items to the
> editor from the palette? Are you able to run our examples successfully?
>
> Consider "special" things that you're doing. Things that we don't do in our
> examples. For instance, do you subclass a root editpart? Or use any gef
> internal code? Without having any idea of what you're doing or what your
> code looks like, it's difficult for us to help you in this situation.
>
> Debug to see if your figures are being painted, and what their bounds are.
>
> "Christian Sell" <christian.sell@netcologne.de> wrote in message
> news:d3jud1$3ra$1@news.eclipse.org...
>
>>Hello,
>>
>>I just switched to GEF 3.1M6/Eclipse 3.1M6 from my previous
>>GEF-ALL-I20050215/Eclipse 3.1M5 setup. After this, my graphical editor
>>does not display the figures added to it any more - even though the
>>figures do get created.
>>
>>I would like to add that I decided NOT to extend GraphicalEditor, as the
>>comments seemed to advise against that. However, I closely followed the
>>GraphicalEditor example.
>>
>>I am rather clueless how to track this issue down. Maybe someone can
>>provide me with a starting point at least.
>>
>>thanks,
>>christian
>
>
>
Re: figures dont display in M6 [message #177530 is a reply to message #177360] Thu, 14 April 2005 14:53 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Some time back, the default size for a figure changed from 64,32 to 0,0.
This was done for performance reason. The default size was meaningless, yet
it had the result that adding a figure and then laying out it's parent
resulted in a damage region that was larger than necessary. The figure had
never painted at 0,0,64,32, so when it moved, there is not really reason to
erase the region. Now that it is initially nowhere, it doesn't need to
erase during the first layout.

"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:d3jud1$3ra$1@news.eclipse.org...
> Hello,
>
> I just switched to GEF 3.1M6/Eclipse 3.1M6 from my previous
> GEF-ALL-I20050215/Eclipse 3.1M5 setup. After this, my graphical editor
> does not display the figures added to it any more - even though the
> figures do get created.
>
> I would like to add that I decided NOT to extend GraphicalEditor, as the
> comments seemed to advise against that. However, I closely followed the
> GraphicalEditor example.
>
> I am rather clueless how to track this issue down. Maybe someone can
> provide me with a starting point at least.
>
> thanks,
> christian
Previous Topic:why do we draw connection lines and graph into different layer
Next Topic:detecting single mouse clicks in a simple way ?
Goto Forum:
  


Current Time: Thu Mar 28 08:53:34 GMT 2024

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

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

Back to the top