Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Move edit Part, replace period key
Move edit Part, replace period key [message #940209] Thu, 11 October 2012 12:18 Go to next message
ModelGeek Mising name is currently offline ModelGeek Mising nameFriend
Messages: 550
Registered: June 2011
Senior Member

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?

Re: Move edit Part, replace period key [message #946411 is a reply to message #940209] Tue, 16 October 2012 07:21 Go to previous message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member

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:Help in Draw in GEF
Next Topic:Zest - Zooming functionality via mouse wheel
Goto Forum:

Current Time: Wed Oct 17 22:08:40 GMT 2018

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

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

Back to the top