IPlatformRunnable versus IApplication in 3.3's RCP? [message #461977] |
Fri, 19 January 2007 08:53  |
Eclipse User |
|
|
|
R3.2.1 (but looking ahead)
I see by checking out 3.3M4 for a trial run that IPlatformRunnable will be deprecated in favor of
IApplication. OK, but how to migrate? It looks, based on a quick glance at the two interfaces, like
the migration could be as simple as "in your RCP's 'Application' class, and everywhere else that you
use IPlatformRunnable, textually replace references to IPlatformRunnable with references
IApplication" -- but I worry that I am being too simple-minded. What is the correct procedure? (I
suppose this will be in the "3.2 to 3.3 migration guide", presumably not yet written?)
thanks,
Paul
|
|
|
Re: IPlatformRunnable versus IApplication in 3.3's RCP? [message #461978 is a reply to message #461977] |
Fri, 19 January 2007 09:25  |
Eclipse User |
|
|
|
Paul Keyser wrote:
> R3.2.1 (but looking ahead)
>
> I see by checking out 3.3M4 for a trial run that IPlatformRunnable will
> be deprecated in favor of IApplication. OK, but how to migrate? It
> looks, based on a quick glance at the two interfaces, like the migration
> could be as simple as "in your RCP's 'Application' class, and everywhere
> else that you use IPlatformRunnable, textually replace references to
> IPlatformRunnable with references IApplication" -- but I worry that I am
> being too simple-minded. What is the correct procedure? (I suppose this
> will be in the "3.2 to 3.3 migration guide", presumably not yet written?)
AFAIK you replace IPlatformRunnable -> IApplication and put your
internals of IPlatformRunnable.run(Object) into the new
IApplication.start(IApplicationContext), thereby exchanging
IPlatformRunnable.EXIT_RESTART -> IApplication.EXIT_RESTART
IPlatformRunnable.EXIT_OK -> IApplication.EXIT_OK
Greetings from Bremen,
Daniel Krügler
|
|
|
Powered by
FUDForum. Page generated in 0.57764 seconds