Skip to main content



      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 00:41
Eclipse UserFriend
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: Thu May 01 10:31:42 EDT 2025

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

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

Back to the top