Updating the content and Reveal a part [message #186268] |
Mon, 04 July 2005 13:28 |
Eclipse User |
|
|
|
Hello,
in my GEF-Editor it is possible to create an editpart for a model at "run
time". For this I build up a new content and set this to my GraphicalViewer.
This works perfectly so far. But I want the newly added part to be selected
and revealed too. So I set up the content, look up the editpart registry for
the matching part and call reveal( part ) and select.
This works for an editor which contains only a few elements. But when I
increase the number of elements it suddendly fails ( the revealing, the
selection still works ) and the editor scrolls to the upper left corner.
Anybody has an idea what the problem could be?
Thx in advance
|
|
|
Re: Updating the content and Reveal a part [message #186853 is a reply to message #186268] |
Thu, 07 July 2005 06:06 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
So, you're creating this part by pasting it to the editor area? Can you
reproduce this problem in our examples?
"IrrE" <irritated@gmx.de> wrote in message
news:dabdco$hao$1@news.eclipse.org...
> Hello,
>
> in my GEF-Editor it is possible to create an editpart for a model at "run
> time". For this I build up a new content and set this to my
GraphicalViewer.
> This works perfectly so far. But I want the newly added part to be
selected
> and revealed too. So I set up the content, look up the editpart registry
for
> the matching part and call reveal( part ) and select.
> This works for an editor which contains only a few elements. But when I
> increase the number of elements it suddendly fails ( the revealing, the
> selection still works ) and the editor scrolls to the upper left corner.
>
> Anybody has an idea what the problem could be?
>
> Thx in advance
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02813 seconds