double click in outline [message #232377] |
Thu, 29 March 2007 15:34 |
Eclipse User |
|
|
|
Originally posted by: alexandre.magillem.com
Hi All,
Is it possible to perform a REQ_OPEN request on objects in the outline ?
I've added the performRequest method to the EditPart in my tree, but it
does not seem to receive the request.
Regards.
Christophe
|
|
|
Re: double click in outline [message #232392 is a reply to message #232377] |
Thu, 29 March 2007 18:43 |
Eclipse User |
|
|
|
Originally posted by: alexandre.magillem.com
Hi again, I've found an answer to my question.
I've added :
@Override
public DragTracker getDragTracker(Request request) {
return new org.eclipse.gef.tools.SelectEditPartTracker(this);
}
and
@Override
public void performRequest(Request request) {
if (request.getType() == RequestConstants.REQ_OPEN) {
//do something
}
}
to my TreeEditPart.
I don't know if it's the good way but it seems to work.
Best Regards.
Christophe
Christophe Alexandre a écrit :
> Hi All,
> Is it possible to perform a REQ_OPEN request on objects in the outline ?
>
> I've added the performRequest method to the EditPart in my tree, but it
> does not seem to receive the request.
>
> Regards.
> Christophe
|
|
|
Powered by
FUDForum. Page generated in 0.02787 seconds