Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Extend my editor.
Extend my editor. [message #197746] Wed, 05 October 2005 14:42 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Selection of a figure inside another figure
Next Topic:Restrictions when creating connections
Goto Forum:
  


Current Time: Sat Dec 07 08:01:20 GMT 2024

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

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

Back to the top