Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-help-dev] how to find if the eclipse help infocenter is running

In 2.1.x and the latest code (it is not public and is likely to change)
there is also another file written by the infocenter and stand-alone help -
file named .connection together with the .lock file.  It contains host and
port that can be used to connect to infocenter.  If the connection to the
infocenter can be established, the infocenter is running.  If not, it may
be not running or be in the process of starting up or shutting down.

The code that launches infocenter uses that mechanism to help detect
whether infocenter is running, and not launch second instance of the
infocenter with the same workspace and port.  So theoretically, calling
infocenter start for the second time should not do any damage.
Practically, starting or stopping infocenter in the wrong sequence too fast
may lead to problems.  We plan on improving things for the 3.0 release, see
bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=35407

On non Windows system you could try quering operating system (with "ps"
command) for processes and then determine whether java command used to
launch infocenter is on the list that was returned.

Konrad Kolosowski



                                                                                                                                              
                      Shikha                                                                                                                  
                      Srivastava/Raleigh/IBM@I        To:       platform-help-dev@xxxxxxxxxxx                                                 
                      BMUS                            cc:                                                                                     
                      Sent by:                        Subject:  [platform-help-dev] how to find if the eclipse help infocenter is running     
                      platform-help-dev-admin@                                                                                                
                      eclipse.org                                                                                                             
                                                                                                                                              
                                                                                                                                              
                      06/29/2003 10:49 PM                                                                                                     
                      Please respond to                                                                                                       
                      platform-help-dev                                                                                                       
                                                                                                                                              







Hi ,
 Is there a way to programmatically find if the Eclipse Help infocenter is
 running or not. I did notice the lock file present in the
 <eclipse-home>/workspace/.metadata dir when eclipse is running.
 But is there any other way to find out.
 Thanks in advance.
 Shikha

_______________________________________________
platform-help-dev mailing list
platform-help-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-help-dev




Back to the top