Skip to main content



      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 04:16 Go to next message
Eclipse UserFriend
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 10: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 10: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: Sun Jul 06 14:25:06 EDT 2025

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

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

Back to the top