[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?
|
- From: Joel Rosi-Schwartz <Joel.Rosi-Schwartz@xxxxxxxxx>
- Date: Tue, 04 Nov 2008 17:44:40 +0000
- Newsgroups: eclipse.platform.rcp, eclipse.platform
- Organization: EclipseCorner
- Posted-and-mailed: yes
- Thread-index: Ack+pQMkwwvXlw+1O02azyL8fdazqQ==
- Thread-topic: How to exit RCP during start up?
- User-agent: Microsoft-Entourage/12.14.0.081024
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?