|Re: ? Adding items to JST Server Module Context Menu? [message #198297 is a reply to message #198089]
||Tue, 14 August 2007 17:05
Originally posted by: sebutkoleth.gmail.com|
Andrey Sadovykh wrote:
> I'm implementing a new server type for a BPEL engine and would like to
> add some new items to the context menu for the modules (BPEL processes).
> Is there any way to add the items to the context menu? Where should I
> look in the jst plugins source code for an example?
> Many thanks in advance,
You can easily add menu items to any view using the existing
org.eclipse.ui.popupMenus extension point.
The only issue will bewhich objectClass to attach the selection to. The
servers in the Servers view are of type
org.eclipse.wst.server.core.IServer. The modules beneath each server are
an internal UI class since there is no module-on-a-server class exposed
in WTP API. You can use
org.eclipse.wst.server.ui.internal.view.servers.ModuleServer . This is
for WTP 1.5. Not sure if WTP 2.0 has made any changes in this.
Powered by FUDForum
. Page generated in 0.01542 seconds