|Re: Correct way to override/enrich XML editor commands? [message #519758 is a reply to message #518819]
||Tue, 09 March 2010 20:58
| Nitin Dahyabhai
Registered: July 2009
Yves Monier wrote:|
> My plugin is based on WTP's xml editor for an xml-based language, for
> which I would need an F3 command similar to the Java editor'one (ie.
> "Open declaration")
> Standard xml editor F3 is "open selection". What is the best, state of
> the art way to replace it with my "open declaration" implementation?
> Also, how to add new, specific commands for my language, so that they
> appear in the different menus (menu bar, editor popup menu) near the F3
> menu item?
> Thanks in advance for your help,
Your editor's action bar contributor would have to retarget the text
action. By default, the
point is used to find what to open, so a hyperlink detector that can
link to your declaration may do the job by itself.
Menu IDs are listed at http://wiki.eclipse.org/Table_of_WTP_IDs
Eclipse WTP Source Editing
Powered by FUDForum
. Page generated in 0.01436 seconds