Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » ? Adding items to JST Server Module Context Menu?
? Adding items to JST Server Module Context Menu? [message #198089] Fri, 10 August 2007 11:56 Go to next message
Andrey Sadovykh (SOFTEAM) is currently offline Andrey Sadovykh (SOFTEAM)
Messages: 2
Registered: July 2009
Junior Member
Hi,

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,

Andrey
Re: ? Adding items to JST Server Module Context Menu? [message #198297 is a reply to message #198089] Tue, 14 August 2007 13:05 Go to previous message
Eclipse User
Originally posted by: sebutkoleth.gmail.com

Andrey Sadovykh wrote:
> Hi,
>
> 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,
>
> Andrey
>
Andrey,
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.

Sebu
Previous Topic:Europa keeps stopping...
Next Topic:Best practices for "sharing" libs?
Goto Forum:
  


Current Time: Sat Aug 23 13:36:16 EDT 2014

Powered by FUDForum. Page generated in 0.01598 seconds