Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How can I handle the drag, using arrow keys?
How can I handle the drag, using arrow keys? [message #202317] Tue, 19 August 2008 04:41
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello,

I want to handle dragging of editpart. So in my editpart I have function
called
getDragTracker and inside it I have return as below,

return new DragEditPartsTracker(this)
{
@Override
protected boolean handleDragStarted()
{
return super.handleDragStarted();
}
};
When I drag using mouse, I can handle the drag events by using
handleDragStarted() function. And when I drag using keyboard, ie '.' and
arrow keys, no handle events are fired including

@Override
protected boolean handleKeyDown(KeyEvent e) {
return super.handleKeyDown(e);
}
@Override
protected void handleKeyTraversed(TraverseEvent event)
{
super.handleKeyTraversed(event);
}
@Override
protected boolean handleKeyUp(KeyEvent e) {
return super.handleKeyUp(e);
}

How can I handle the drag on using arrow key ?.

Thanks In Advance,
Nagesh
Previous Topic:SetBounds Command - Position and size problem
Next Topic:Compartments
Goto Forum:
  


Current Time: Sun Sep 01 06:02:43 GMT 2024

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

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

Back to the top