[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: How to exit RCP during start up?

Thanks for the reply.

Back in the old days (I think 3.2 if my memory servers) one could call
return IPlatformRunnable.EXIT_OK from the run() method. This is no longer
true of the start() method. Calling System.exit() is possible but brutish.

I also have a further issue. My architecture is split up with an app, core
and ui bundles. I would really not like to pollute the app bundle with UI
stuff if I can help it. Once I pull this File dialog into the app bundle, I
also have to pull up my preferences. This means that all of my dialogs that
access preferences also (and I have not many but a few) these have be pulled
up to access the plug-ins preference store. This is getting too sloppy for
my taste.

The only solution I have come up with so far is to put the resource check in
the Activator.start() method of my ui bundle. This also seems brutish,
but...

Anyone have a idea for a cleaner solution?

Thanks,
Joel


On 04/11/2008 15:29, in article geppn5$kqp$1@xxxxxxxxxxxxxxxxx, "Remy Chi
Jian Suen" <remy.suen@xxxxxxxxx> wrote:

> You could try to hack the code up in your IApplication implementation's
> start(IApplicationContext) method before it calls
> PlatformUI.createDisplay() maybe?