[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Single instance of the application is required
|
This has nothing to do with Eclipse, but with Java from my point of view.
Having a single instance would require some trick or some native AFAIK.
Check how Azureus (not an RCP but a JAVA+SWT app) does it.
For tricks, search google:
http://www.google.com/search?q=+%22single+instance%22++java+application
http://mindprod.com/jgloss/singleinstance.html
http://forum.java.sun.com/thread.jspa?threadID=126410&messageID=334475
http://sf.net/projects/azureus
"Alex Fitzpatrick" <alex.fitzpatrick@xxxxxxxxxx> wrote in message
news:d7o5bs$4qu$1@xxxxxxxxxxxxxxxxxxx
> Ravi wrote:
> > Hi
> >
> > We have a rich client application, Whenever we run this from eclipse run
> > option, it is showing a new window. But, we would like to show the same
> > window no matter how many times we run. So, I changed my main
> > application class to singleton. But, how can Eclipse invoke this class?
> >
> > I'm getting the following error:
> >
> > Class org.eclipse.core.internal.registry.ConfigurationElement can not
> > access my main window class.
>
> As far as I know, the framework does not handle this out of the box so
> you'll have to implement it yourself.
>
> However, if it's good submit it to the bugzilla as a patch!
>
> --
> Alex