[udig-devel] Testing to see if app is already running

Jesse Eichar jeichar at refractions.net
Wed Jun 7 15:09:04 PDT 2006


All that eclipse does is create a file in the workspace on startup.   
If the file is already there then it reports that the workspace is  
already in use.  I don't know if the RCP handles that automatically  
or not.

Jesse

On 7-Jun-06, at 3:02 PM, Mark Presling wrote:

> Hi All,
>
> Does anyone know if it is possible to test whether uDig (or in this  
> case my own RCP app) is already running when the user runs the  
> executable? Is it something provided by RCP?
>
> I need my app to zoom to a feature on the map when a user gets an  
> email stating that something has been updated. What I had intended  
> to do was this:
> User receives an email with an attachement with a certain extension
> Windows is configured to open that attachement by default with my  
> application
> The application is launched
> In it's initialise step it checks to see if an instance of the app  
> is already running
> If not it continues on with the startup, reads the feature id from  
> the attachment and zooms to it (I imagine this "zoom to feature"  
> would all be my own code rather than something uDig provides)
> Otherwise it tells the running app to read the attachment as above
> I remember Netbeans had a similar approach a while back. It had a  
> helper class with a Main method that probed a socket that Netbeans  
> would listen on and if it was open it would tell Netbeans what file  
> to open. Otherwise it would start Netbeans for you (when you double  
> click on a .java file in Windows Explorer this is).
>
> Does anybody have any ideas on this? Does anybody know whether the  
> RCP framework already has something like this build in?
>
> Thanks,
> Mark
>
> -- 
> This message has been scanned for viruses and dangerous
> content by MailScanner, and is believed to be clean.
> <mark.vcf>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20060607/f016c3b2/attachment.html


More information about the udig-devel mailing list