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:Separate Outline and Overview
Next Topic:FlowAdapter problem
Goto Forum:
  


Current Time: Wed Dec 08 09:43:02 GMT 2021

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

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

Back to the top