REQ_OPEN issue. [message #198059] |
Fri, 07 October 2005 08:44 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
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
|
|
|
|
Re: REQ_OPEN issue. [message #198075 is a reply to message #198067] |
Fri, 07 October 2005 11:57 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
Hey John.
Thanks a LOT !!!
:)
Greg
John Cage wrote:
> You can handle it directly in EditPart method prerformRequest.
> Or you can create your own EditPolicy in which you filter this request
> directly in getCommand method.
>
> Best Regards,
>
> John Cage
>
>
|
|
|
Re: REQ_OPEN issue. [message #198088 is a reply to message #198075] |
Fri, 07 October 2005 13:45 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Actually, perform request is not forwarded to Editpolicies, so just do it in
the editpart.
"Greg" <greg.gigon@tugulu.com> wrote in message
news:di5nqb$fl3$1@news.eclipse.org...
> Hey John.
> Thanks a LOT !!!
> :)
>
> Greg
>
> John Cage wrote:
>> You can handle it directly in EditPart method prerformRequest.
>> Or you can create your own EditPolicy in which you filter this request
>> directly in getCommand method.
>>
>> Best Regards,
>>
>> John Cage
>>
|
|
|
|
Re: REQ_OPEN issue. [message #198649 is a reply to message #198454] |
Wed, 12 October 2005 15:52 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The request is sent by SelectEditPartTracker, so you need to be returning
one of those in getDragTracker(Request) when the SelectionTool asks.
"vince" <fiustudent@hotmail.com> wrote in message
news:dii18t$ca1$1@news.eclipse.org...
>
> "Randy Hudson" <none@us.ibm.com> wrote in message
> news:di5u69$p6e$1@news.eclipse.org...
>> Actually, perform request is not forwarded to Editpolicies, so just do it
>> in the editpart.
>
> Will performRequest() handle request before Editpolicies?
>
> I have a problem that in performRequest() I cann't find REQ_OPEN and
> REQ_SELECTION even though I do select or double-click corresponding nodes.
> Do you by any chance have some idea about what reasons it could be?
>
> Thanks!
> Miaohua Xu
|
|
|
Powered by
FUDForum. Page generated in 0.04635 seconds