problem with targeting on scroll pane [message #188314] |
Tue, 19 July 2005 18:44 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Hi all,
I've got a setup where you can grab an object from the pallette and
drop it on the scrolling graphical viewer. Now, depending upon what edit
part is under the cursor the create will be allowed or disallowed. i.e.
the new part has to be a valid child for the part being hovered over.
This works great for all of the parts that are in the viewer before
you try and scroll it. When you do scroll it any part that was offscreen
before is never detected by the targeting system of GEF. All that I get
back is my main diagram part. If I scroll back to the parts that worked
previously, they still work fine.
Any ideas?
Thanks!
Pierre
|
|
|
Re: problem with targeting on scroll pane [message #188330 is a reply to message #188314] |
Tue, 19 July 2005 20:10 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You could put a breakpoint in the TemplateDropTargetAdapter with a hitcount
if that helps, and debug into the updateTarget code. The action you describe
works fine in the Logic example.
"Pierre Padovani" <none@us.ibm.com> wrote in message
news:dbjhmn$et4$1@news.eclipse.org...
> Hi all,
> I've got a setup where you can grab an object from the pallette and
> drop it on the scrolling graphical viewer. Now, depending upon what edit
> part is under the cursor the create will be allowed or disallowed. i.e.
> the new part has to be a valid child for the part being hovered over.
>
> This works great for all of the parts that are in the viewer before you
> try and scroll it. When you do scroll it any part that was offscreen
> before is never detected by the targeting system of GEF. All that I get
> back is my main diagram part. If I scroll back to the parts that worked
> previously, they still work fine.
>
> Any ideas?
>
> Thanks!
>
> Pierre
|
|
|
Powered by
FUDForum. Page generated in 0.03466 seconds