Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how can i write the mouse right click menu and event when developing a editor.
how can i write the mouse right click menu and event when developing a editor. [message #153460] Sun, 10 October 2004 03:03 Go to next message
Eclipse UserFriend
Originally posted by: outiejun.yeah.net

hi,everyone.

i am developing a editor plugin, and i want to add a custom right click
menu to my editor when i click the specific editor area. but i am not very
familiar with this case, could you give me some suggestion of it?

thanks very much.
Re: how can i write the mouse right click menu and event when developing a editor. [message #153509 is a reply to message #153460] Mon, 11 October 2004 03:05 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Use a ContextMenuProvider. Look at LogicContextMenuProvider, if you need an
example.

"Glitter.ou" <outiejun@yeah.net> wrote in message
news:cka8q8$3so$1@eclipse.org...
> hi,everyone.
>
> i am developing a editor plugin, and i want to add a custom right click
> menu to my editor when i click the specific editor area. but i am not very
> familiar with this case, could you give me some suggestion of it?
>
> thanks very much.
>
Re: how can i write the mouse right click menu and event when developing a editor. [message #153611 is a reply to message #153460] Mon, 11 October 2004 15:26 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The context menu is built based purely on what is selected. The item gets
selected immediately before the menu appears (if it isn't already selected).

"Glitter.ou" <outiejun@yeah.net> wrote in message
news:cka8q8$3so$1@eclipse.org...
> hi,everyone.
>
> i am developing a editor plugin, and i want to add a custom right click
> menu to my editor when i click the specific editor area. but i am not very
> familiar with this case, could you give me some suggestion of it?
>
> thanks very much.
>
Previous Topic:mousePressed but not mouseDoubleClicked
Next Topic:FAQ updated for double-clicking
Goto Forum:
  


Current Time: Tue Apr 23 06:47:40 GMT 2024

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

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

Back to the top