How to extend context menu to ".jsp" and ".js" file? [message #157093] |
Wed, 18 January 2006 05:56 |
Eclipse User |
|
|
|
Originally posted by: zhling.gmail.com
Hi,
I want to extend context menu to ".jsp" and ".js" file (also the "Source"
main menu) and put some new features to these menus.
Another question is how can I manipulate ".jsp" and ".js" source in a
programming way, like we did in JDT using AST?
Thanks in advance
- Zhang Ling
|
|
|
Re: How to extend context menu to ".jsp" and ".js" file? [message #157359 is a reply to message #157093] |
Thu, 19 January 2006 19:35 |
Eclipse User |
|
|
|
Originally posted by: amywu.us.DELETETHISPART.ibm.com
To extend the menus, use the standard eclipse extension points:
- org.eclipse.ui.editorActions
- org.eclipse.ui.popupMenus
Use target ids:
context menus:
- org.eclipse.jst.jsp.core.jspsource.source.EditorContext
- org.eclipse.wst.javascript.core.javascriptsource.EditorConte xt
main menu (editor id)
- org.eclipse.jst.jsp.core.jspsource.source
- org.eclipse.wst.javascript.core.javascriptsource.source (or maybe it's
org.eclipse.wst.javascript.ui.internal.editor.JSMultiPageEdi torPart)
"Zhang Ling" <zhling@gmail.com> wrote in message
news:dqkl9v$t1e$1@utils.eclipse.org...
> Hi,
>
> I want to extend context menu to ".jsp" and ".js" file (also the "Source"
> main menu) and put some new features to these menus.
>
> Another question is how can I manipulate ".jsp" and ".js" source in a
> programming way, like we did in JDT using AST?
>
> Thanks in advance
>
> - Zhang Ling
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03569 seconds