Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Bug#244862 - Closing the server project doesn't call stop server
Bug#244862 - Closing the server project doesn't call stop server [message #228841] Thu, 12 March 2009 15:03 Go to next message
Tahereh is currently offline TaherehFriend
Messages: 5
Registered: July 2009
Junior Member
Hi,

I am working on bug 244862. The steps for reproducing the bug can be seen
here: http://challenger110.wordpress.com/2009/02/23/eclipse-wtp-bu g-244862/

I am wondering what the right behaviour for this bug is. What should
happen when users delete a project? I have found a possible solution which
is posted on my blog:
http://myblog110.wordpress.com/2009/03/04/possible-solution- for-bug-244862/
But don’t know if this can be the right or not.

Thanks,
Tahereh
Re: Bug#244862 - Closing the server project doesn't call stop server [message #228849 is a reply to message #228841] Thu, 12 March 2009 15:53 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

emailtahereh@gmail.com (Tahereh ) wrote in
news:d58b3cc6d94d16fb6c9380b15468e812$1@www.eclipse.org:

> http://myblog110.wordpress.com/2009/03/04/possible-solution- for-bug-244
> 862/


Tahareh, I have provided my input in the bug. Hope it helps.


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: Bug#244862 - Closing the server project doesn't call stop server [message #229376 is a reply to message #228849] Sun, 22 March 2009 16:45 Go to previous messageGo to next message
Tahereh is currently offline TaherehFriend
Messages: 5
Registered: July 2009
Junior Member
Thanks Angel for your quick reply to my first question.

Any ideas which method gets called when a "server project" in the project
explorer window gets closed or deleted?

thanks,
Tahereh
Re: Bug#244862 - Closing the server project doesn't call stop server [message #229407 is a reply to message #229376] Mon, 23 March 2009 15:00 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

emailtahereh@gmail.com (Tahereh ) wrote in
news:e748ba27e7fd37d3389219b10b96d603$1@www.eclipse.org:

>
> Thanks Angel for your quick reply to my first question.
>
> Any ideas which method gets called when a "server project" in the
> project explorer window gets closed or deleted?
>
> thanks,
> Tahereh
>
>
>

When I looked at this quickly the other day, the functionality comes from
the platform Project class, and there is no WTP Server tools method that
gets called during the closing of a server project. What I think can be
doen is add a project listener during the creation of the 'Servers'
project, and then that listener determines when the project is about to be
closing and does whatever is necessary for proper cleanup. This is just one
idea.. feel free to suggest a different one.


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: Bug#244862 - Closing the server project doesn't call stop server [message #229443 is a reply to message #229407] Tue, 24 March 2009 13:47 Go to previous messageGo to next message
Tahereh is currently offline TaherehFriend
Messages: 5
Registered: July 2009
Junior Member
I think your solution is the same as what I was thinking to do. My first
solution was just a little complicated. But going with the second
solution, I want to find the method that will be called to delete the
project, and in this method I can call the function that stops the server.
Re: Bug#244862 - Closing the server project doesn't call stop server [message #229452 is a reply to message #229443] Tue, 24 March 2009 17:13 Go to previous messageGo to next message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

emailtahereh@gmail.com (Tahereh ) wrote in
news:00d9b5b80e73a7bbff8b1a071af792ac$1@www.eclipse.org:

> .... I want to find the method that will be called to delete the
> project, and in this method I can call the function that stops the
> server.
>

Assuming that you mean close and not 'delete', this functionality comes
from the platform Project class:
org.eclipse.core.internal.resources.Project.close(IProgressM onitor), and we
WTP do not override this functionality.


Regards,
--
Angel Vera
WTP Server Tools Developer
Re: Bug#244862 - Closing the server project doesn't call stop server [message #229769 is a reply to message #229452] Fri, 27 March 2009 16:13 Go to previous messageGo to next message
Tahereh is currently offline TaherehFriend
Messages: 5
Registered: July 2009
Junior Member
Does this mean we don't have access to the code?

Thanks,
Tahereh
Re: Bug#244862 - Closing the server project doesn't call stop server [message #230341 is a reply to message #229769] Tue, 14 April 2009 17:35 Go to previous message
Angel Vera is currently offline Angel VeraFriend
Messages: 63
Registered: July 2009
Member

emailtahereh@gmail.com (Tahereh ) wrote in
news:b17efcfe173e751ed8c7257d31d54f4a$1@www.eclipse.org:

> Does this mean we don't have access to the code?
>
> Thanks,
> Tahereh
>
>

Tahereh,

I provided a response to your question in the bug. Hope it helps.


Regards,
--
Angel Vera
WTP Server Tools Developer
Previous Topic:what method is invoked when right-click on a jsp and select Run on Server?
Next Topic:WST not publishing JEE Module Dependency
Goto Forum:
  


Current Time: Tue Dec 23 03:48:50 GMT 2014

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

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