[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Re: Where/How does one add new context menu actions for the Editor?

Hi drew,

usually it is not necessary to create a subclass as it is possible to declare the menu entries in your plugin.xml.

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

drew schrieb:
Same as any other , first you need to derive your onw editor from XtextEditor and do the injectable thing in plugin.xml then ..
protected void editorContextMenuAboutToShow(IMenuManager menu) {


super.editorContextMenuAboutToShow(menu);

// add your actions here

}

"drew" <drew@xxxxxxx> wrote in message news:h8dr74$hju$1@xxxxxxxxxxxxxxxxxxxx