Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » which method is called when select "START" from server's context menu?
which method is called when select "START" from server's context menu? [message #228757] Tue, 10 March 2009 21:22 Go to next message
Kevin Vu is currently offline Kevin Vu
Messages: 5
Registered: July 2009
Junior Member
Hello all,
I'm trying to fix a WTP's bug and is trying to identify the method that is
triggered when we select "START" from Tomcat server's context menu. If
anyone knows what is the name of that method, please let me know. Thanks
in advance!


Kevin
Re: which method is called when select "START" from server's context menu? [message #228803 is a reply to message #228757] Wed, 11 March 2009 10:52 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
Kevin Vu wrote:
> Hello all,
> I'm trying to fix a WTP's bug and is trying to identify the method that
> is triggered when we select "START" from Tomcat server's context menu.
> If anyone knows what is the name of that method, please let me know.
> Thanks in advance!
>
>
> Kevin
>

From the "org.eclipse.wst.server.ui.internal.view.servers" package, the
context menu is built by ServersView.initializeActions() using
StartAction objects. I believe StartAction.start() would be appropriate
for "the method that is triggered".

Cheers,
Larry
Re: which method is called when select "START" from server's context menu? [message #228857 is a reply to message #228803] Thu, 12 March 2009 12:37 Go to previous messageGo to next message
Angel Vera is currently offline Angel Vera
Messages: 63
Registered: July 2009
Member

Larry Isaacs <Larry.Isaacs@sas.com> wrote in news:gp8j7f$lai$1
@build.eclipse.org:

> w

What Larry described is correct as long as you are looking at the 3_0
_maintenance stream (our 3.0.5 stream)

If you are looking at what is in HEAD (our 3.1 stream) then the actions get
build during
org.eclipse.wst.server.ui.internal.cnf.ServersView2.createCo mmonActionGroup
(), and the menu is built by
org.eclipse.wst.server.ui.internal.cnf.ServersView2.fillCont extMenu(Shell,
IMenuManager).

But as Larry mentioned. You probably want to stay within
org.eclipse.wst.server.ui.internal.view.servers.StartAction, the method
that will be triggered at the time of the click is the StartAction.perform
(IServer)


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: which method is called when select "START" from server's context menu? [message #228873 is a reply to message #228857] Thu, 12 March 2009 23:25 Go to previous message
Kevin Vu is currently offline Kevin Vu
Messages: 5
Registered: July 2009
Junior Member
Thanks Larry and Angel for your quick replies :). Your answers are very
helpful.
Previous Topic:Programmatically launching web service explorer
Next Topic:Can't start jboss from Eclipse Ganymede
Goto Forum:
  


Current Time: Fri Aug 29 04:10:30 EDT 2014

Powered by FUDForum. Page generated in 0.02574 seconds