[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: How to know if application already running?
|
- From: Benjamin Pasero <bpasero@xxxxxxxxxx>
- Date: Sun, 01 May 2005 21:09:39 +0100
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
Daniel Spiewak wrote:
> You have several options on this one, only one of them having to do
> with SWT itself. The Display class has a method which returns an
> array of all the Shell(s) open on that Display. Alternatively, you
> can use file-locking, even server sockets to implement the behavior.
As far as I can see, a new Display class is created with each new SWT
application. So, how should one display
know of the Shells of another application? I dont think (and checked)
that its working.
sockets seem to be the best (and most common) way to achieve this.
Ben
>
> Daniel
>
> Doug Pearson wrote:
>
>> Is there any way to detect from one SWT application if another SWT
>> application is already running?
>>
>> In Windows the usual solution to this was using ::FindWindow() to
>> look for the window class (or name).
>>
>> Is there anything like that or any alternative available in SWT?
>>
>> Doug
>>