Bug 40776 - [app] Can we have an IPlatformRunnable.EXIT_ERROR?
Summary: [app] Can we have an IPlatformRunnable.EXIT_ERROR?
Status: ASSIGNED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Compendium (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Thomas Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-25 11:01 EDT by Simon Arsenault CLA
Modified: 2019-09-06 15:37 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Arsenault CLA 2003-07-25 11:01:25 EDT
Currently, there is no code we can return from IPlatformRunnable.run() to 
indicate something went wrong. When we start up the workbench, it is possible 
something can go wrong even before we have a Display up and running. By 
returning this code, the launcher could notify the user something went wrong 
and to look at their log file. (actually, you guys already have this support in 
the Main class - exit code 13).
Comment 1 John Arthorne CLA 2003-07-25 14:17:33 EDT
I don't think it's worth adding this to IPlatformRunnable at the moment.  If we
go ahead with the Equinox runtime, then I believe the existing boot plugin will
be disappearing.  Pascal, this is something to keep in mind for the new story
though.
Comment 2 DJ Houghton CLA 2005-01-25 07:50:29 EST
Obsolete?
Comment 3 Pascal Rapicault CLA 2005-01-25 08:57:02 EST
The error code is application specific. However for completion we may want to
add a default error code that will trigger the opening of the dialog indicating
where to find the log.
Comment 4 Jeff McAffer CLA 2005-01-25 09:30:35 EST
I believe that eclipse.exe will bring up a dialog if it sees any error code 
other than -23 or -24 (the restart codes).   There is a way of stuffing a 
message back for the exe to display in a dialog if it sees such a code.  Can't 
for the life of me remember/find it right now.  Pascal?
Comment 5 Pascal Rapicault CLA 2006-03-23 15:19:00 EST
Simon is waiting since july 2003, I'm sure he can wait until 3.3 ;-)
Moving to equinox for consideration when moving to the eclipse app model.

To get the exe to display a message you simply need to put the message in eclipse.exitdata.
Comment 6 Thomas Watson CLA 2006-12-13 15:16:34 EST
I think we should add a default error code to IApplication and document in the javadoc that any code other than 23 and 24 are considered error codes.  I also think we should add a constant and javadoc for the eclipse.exitdata property to IApplication.
Comment 7 Thomas Watson CLA 2007-03-12 10:30:44 EDT
Not going to add this as new API to 3.3
Comment 8 Eclipse Webmaster CLA 2019-09-06 15:37:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.