Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Editpart dragging event tracking...
Editpart dragging event tracking... [message #244294] Tue, 15 July 2008 07:24 Go to next message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
Hello,

How can I track the editpart's dragging event. On drag of editpart, the
outline touches boundary of its parent i have increase the width of
parent. How can do this?.

--Nagesh
Re: Editpart dragging event tracking... [message #244510 is a reply to message #244294] Wed, 23 July 2008 11:39 Go to previous message
Nagesh is currently offline NageshFriend
Messages: 55
Registered: July 2009
Member
I got solution. We can drag tracking event in editpart like below,

public DragTracker getDragTracker(Request request)
{
//Handling dragging of component
return new DragEditPartsTracker(this)
{
@Override
protected boolean handleDragInProgress() {
// TODO Auto-generated method stub
return super.handleDragInProgress();
}
};
}

and you can lock this editpart to its parent so that it can't come out of
its parent,


public DragTracker getDragTracker(Request request)
{
//Handling dragging of component
return new DragEditPartsTracker(this)
{
@Override
protected boolean handleDragStarted() {
lockTargetEditPart(getParent());
return super.handleDragStarted();
}
};
}

--Nagesh
Previous Topic:Scrolling a Layer
Next Topic:zest versus gef newbie question
Goto Forum:
  


Current Time: Sat Apr 20 11:41:49 GMT 2024

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

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

Back to the top