Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » problem with targeting on scroll pane
problem with targeting on scroll pane [message #188314] Tue, 19 July 2005 18:44 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:View multiple lightweightsystems and select them
Next Topic:EMF-GEF mapping
Goto Forum:
  


Current Time: Thu Mar 28 17:36:19 GMT 2024

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

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

Back to the top