Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Auto-exposure/Auto-Scroll - snapping back (GEF 3.8.2)
Auto-exposure/Auto-Scroll - snapping back (GEF 3.8.2) [message #1700654] Mon, 06 July 2015 09:09 Go to next message
Markus Fried is currently offline Markus FriedFriend
Messages: 3
Registered: July 2015
Junior Member
Hi,

we are using a ScalableFreeformRootEditPart in our plugin which offers auto-exposure/scrolling when dragging objects in the editor to/over the edge.

This works fine.

What our customers don't like is the "snapping back" that happens when by dragging/auto-scroll the canvas size is increased but the editpart is not dropped but slowly moved back towards its original position.

Then the canvas size is reduced again but this happens so fast, that the user doesn't have a chance to stop in between.

We now want to disable this snapping back (or the reduction in size when moving the part back. Unfortunately the code for this behavior seems to be hidden quite deep in the framework.

Can anybody give me a hint, where to look for this?

Best regards
Markus.
Re: Auto-exposure/Auto-Scroll - snapping back (GEF 3.8.2) [message #1700774 is a reply to message #1700654] Tue, 07 July 2015 06:48 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
I don't exactly know what behavior you are referring to (it seems to be custom), but if its related to behavior that occurs during drag, the ViewportAutoexposeHelper probably is the one you are looking for.
Re: Auto-exposure/Auto-Scroll - snapping back (GEF 3.8.2) [message #1700776 is a reply to message #1700774] Tue, 07 July 2015 07:03 Go to previous messageGo to next message
Markus Fried is currently offline Markus FriedFriend
Messages: 3
Registered: July 2015
Junior Member
Hi Alexander,

thanks for your reply.

As it seems the ViewportAutoexposeHelper is involved only in increasing the size, its step()-method is not called, when the part is moved back and the canvas is reduced in size.

This seems to be happening somewhere else Sad

Mark.
Re: Auto-exposure/Auto-Scroll - snapping back (GEF 3.8.2) [message #1700916 is a reply to message #1700776] Wed, 08 July 2015 07:24 Go to previous message
Markus Fried is currently offline Markus FriedFriend
Messages: 3
Registered: July 2015
Junior Member
Can anybody give advice which classes are involved when the canvas size of a diagram is increased/decreased automatically when doing a drag/drop operation on elements/editparts of this diagram?

Best regards
Mark.
Previous Topic:[GEF4] ZoomEvent listener
Next Topic:Interest in GEF-BoF at upcoming EclipseCon?
Goto Forum:
  


Current Time: Tue Mar 19 07:41:24 GMT 2024

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

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

Back to the top