How to add context menu item to visual component? [message #108766] |
Tue, 04 October 2005 04:16  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03363 seconds