Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to extend context menu to ".jsp" and ".js" file?
How to extend context menu to ".jsp" and ".js" file? [message #157093] Wed, 18 January 2006 05:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Where is the source code/implementation for Servers View?
Next Topic:Eclipse Refactoring works for ".java" and ".jsp", any other file type?
Goto Forum:
  


Current Time: Tue Apr 23 10:00:43 GMT 2024

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

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

Back to the top