[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] REQ_OPEN issue.

Becouse thread was lost somewhere betwen "threads rain" I'm raising my questions again :). It's very important for me.



"You can handle double-clicking by catching REQ_OPEN requests in your EditPart."

How and where?
I tried with SelectionEditPolicy and I don't recive SelectionRequest.
I hope someone will point me to right direction :)

Regards, Greg



-----------------------------------------------------------
Martijn.
Is it in SelectionEditPolicy for element??
What method should I overide?

In SelectionEditPolicy I'm trying to see in getCommand what kind of Request is send and I don't see SelectionRequest but GroupRequest...
Should it be like that?


Do I have to handle request directly in my EditPart or use one of these EditPolicies that I have wrote about it before?



Greg


Martijn van Steenbergen wrote:

> You can handle double-clicking by catching REQ_OPEN requests in your
> EditPart.
>
> Regards,
>
> Martijn.
>
> Greg wrote:
>
>> Hi, all.
>> I'd like to extend my editor posibilites.
>> I'd like to open a property view in a moment when figure on diagram is clicked. I was trying to find some EditPolicy with single and double click event handle but I find this kind of suport only i SelectionEditPart (single mouse click).
>>
>> Do I have to go lower, and try to do that in Draw2d figures or is it possible to do it from GEF somehow??
>>
>> Regardes, Greg