[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: EditPart can't receive REQ_OPEN and REQ_SELECTION request

Thank you for your reply!

I am guessing the outline TreeViewer has handled such request so that it 
doesn't dispatch them. Could you please point out a direction for me? Say, 
shall I look into the source code of treeViewer? or something else?

Additional, what do you mean by saying "pick one place/thread to discuss 
this problem"? I am kind of new to Eclipse.

Thanks!
Miaohua Xu

"Randy Hudson" <none@xxxxxxxxxx> wrote in message 
news:dijbkt$4i4$1@xxxxxxxxxxxxxxxxxxx
> I'm not sure if DragTrackers are used in the tree since reordering is done 
> using native drag-and-drop.
>
> Are you returning the drag tracker in the tree editpart? BTW, pick one 
> place/thread to discuss this problem.
>
> "vince" <fiustudent@xxxxxxxxxxx> wrote in message 
> news:dij9da$18l$1@xxxxxxxxxxxxxxxxxxx
>> Most of you should be familiar with Shape.
>> I implemented public void performRequest(Request req)  for 
>> shapeTreeEditPart,
>> hoping to do something when some nodes in the outline treeview are 
>> selected or double-clicked.
>>
>> The code is like this:  (ENV: WindowsXP, Eclipse 3.1M7, JRE1.5, RCPed 
>> Shape-Plugin)
>>
>> void performRequest(Request req){
>>
>> if (REQ_SELECTION.equals(req.getType())){
>> doMySelection();
>> }
>> else if (REQ_OPEN.equals(req.getType())){
>> doMyOpen();
>> }
>> }
>> However, doMySelection() and doMyOpen() were never called when debugging, 
>> even though I selected or double-clicked on the nodes in the outline 
>> tree. Does someone have any idea to get the requests?
>>
>> Thanks,
>> Miaohua Xu
>>
>>
>
>