figures dont display in M6 [message #177360] |
Wed, 13 April 2005 20:05 |
Eclipse User |
|
|
|
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 #177423 is a reply to message #177409] |
Wed, 13 April 2005 21:58 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04082 seconds