Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » How to add context menu item to visual component?
How to add context menu item to visual component? [message #108766] Tue, 04 October 2005 08:16 Go to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Hi all,

I have some problem with how to add context menu item to visual component?

I want to show popup menu on selected component in VE.
Is it possible to do it via .override file or is there any other way?

Thanks,

John Cage
Re: How to add context menu item to visual component? [message #108809 is a reply to message #108766] Tue, 04 October 2005 14:13 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

We don't have an example of contributing a menu item, but we do have
actual code that does that.

Take a look at
org.eclipse.ve.internal.java.codegen.editorpart.RenameJavaBe anObjectActionDelegate
and pay particular attention to the selectionChanged(IAction action,
ISelection selection) method. Also go to the
org.eclipse.ve.java.core/plugin.xml and look for
RenameJavaBeanObjectActionDelegate in the file. That will show how the
extension point is used.


--
Thanks,
Rich Kulp
Re: How to add context menu item to visual component? [message #610918 is a reply to message #108766] Tue, 04 October 2005 14:13 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

We don't have an example of contributing a menu item, but we do have
actual code that does that.

Take a look at
org.eclipse.ve.internal.java.codegen.editorpart.RenameJavaBe anObjectActionDelegate
and pay particular attention to the selectionChanged(IAction action,
ISelection selection) method. Also go to the
org.eclipse.ve.java.core/plugin.xml and look for
RenameJavaBeanObjectActionDelegate in the file. That will show how the
extension point is used.


--
Thanks,
Rich Kulp
Previous Topic:What is InverseMaintenanceAdapter for?
Next Topic:Cannot use "New Visual Class" wizard
Goto Forum:
  


Current Time: Thu Apr 18 17:26:27 GMT 2024

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

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

Back to the top