Skip to main content



      Home
Home » Eclipse Projects » GEF » Move edit Part, replace period key
Move edit Part, replace period key [message #940209] Thu, 11 October 2012 08:18 Go to next message
Eclipse UserFriend
Hi,

i am working with GEF and i have a digram where i can move editparts with period key + arrow keys. i want to replace period key with some other key. Any idea how to do it?

Cheers,
Re: Move edit Part, replace period key [message #946411 is a reply to message #940209] Tue, 16 October 2012 03:21 Go to previous message
Eclipse UserFriend
Hi,

this is realized in the SelectionTool.acceptTraverseHandle(KeyEvent e) method and as you can see it's a private method. So you can't change it.

However you could create your own SelectionTool by extending the original SelectionTool and override its handleKeyDown(KeyEvent e) method. There you should handle the key you want.

Or you could register your own KeyHandler which would accept the key you want and the action would call '.' key event on the viewer.

But these are just my ideas:)
Previous Topic:SnapToGrid on connection bendpoints
Next Topic:Using InternalImages
Goto Forum:
  


Current Time: Fri Jul 25 00:18:21 EDT 2025

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

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

Back to the top