Extend my editor. [message #197746] |
Wed, 05 October 2005 14:42 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
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: Extend my editor. [message #197754 is a reply to message #197746] |
Wed, 05 October 2005 15:23 |
Eclipse User |
|
|
|
Originally posted by: mvsteenbergen.eljakim.scratch-this.nl
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: Extend my editor. [message #197890 is a reply to message #197754] |
Thu, 06 October 2005 09:28 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
Is it in SelectionEditPolicy for element??
What method should I overide?
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: Extend my editor. [message #197912 is a reply to message #197754] |
Thu, 06 October 2005 10:00 |
Eclipse User |
|
|
|
Originally posted by: greg.gigon.tugulu.com
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
|
|
|
Powered by
FUDForum. Page generated in 0.03110 seconds