[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to get notified that the platform has statrted

I would keep using the startup extension, but you can check to see if the workbench is still running using PlatformUI.isWorkbenchRunning().
If this doesn't meet your needs, please file a feature request against Platform UI using Bugzilla.


Nick

djcody wrote:
Hi,

I need to get notification that the platform has started. because if I try to run "PlatformUI.getWorkbench().close();" during platform startup (in plugin start method) it brings an error message and shutdown. It is not working at all if I shedule a job to shut down a platform, because it gets null pointer exception.

I need to get a "clean shutdown".

The all task is to get user authorisation parameters on platform startup, so I impemented it on plugin start method, but if user refuses to enter credentials the platform should shut down.

If I could register listener about platform has finished starting, I could implement user authorisation in an event and make a clean shutdoen if needed.

Does anyone have a proper sugestion or some links for reading :)?