Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » REQ_OPEN issue.
REQ_OPEN issue. [message #198059] Fri, 07 October 2005 08:44 Go to next message
Eclipse UserFriend
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 #198067 is a reply to message #198059] Fri, 07 October 2005 10:07 Go to previous messageGo to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
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 #198075 is a reply to message #198067] Fri, 07 October 2005 11:57 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #198454 is a reply to message #198088] Wed, 12 October 2005 03:51 Go to previous messageGo to next message
victor fiu is currently offline victor fiuFriend
Messages: 37
Registered: July 2009
Member
"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

>
> "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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Using GEF without draw2d
Next Topic:Problems Opening GEF Editor: Migration from 3.1 M6 -> 3.1.1
Goto Forum:
  


Current Time: Wed Nov 13 14:52:25 GMT 2024

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

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

Back to the top