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] Wed, 11 March 2009 01:22 Go to next message
Kevin Vu is currently offline Kevin VuFriend
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 14:52 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
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 16:37 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
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] Fri, 13 March 2009 03:25 Go to previous message
Kevin Vu is currently offline Kevin VuFriend
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: Wed Nov 26 00:57:32 GMT 2014

Powered by FUDForum. Page generated in 0.01741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software