Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » double click in outline
double click in outline [message #232377] Thu, 29 March 2007 15:34 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Undoable Operation Support
Next Topic:How to fix problem with draging edit parts
Goto Forum:
  


Current Time: Thu Apr 25 02:03:00 GMT 2024

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

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

Back to the top