[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
|
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
>
>