Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Updating the content and Reveal a part
Updating the content and Reveal a part [message #186268] Mon, 04 July 2005 13:28 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Auto-Sizing Thumbnails
Next Topic:mouselistener for connection label
Goto Forum:
  


Current Time: Thu Dec 26 21:04:35 GMT 2024

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

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

Back to the top