Bug 20219

Summary: Run-time Workbench link shows bad problem dialog
Product: [Eclipse Project] PDE Reporter: Grant Gayed <grant_gayed>
Component: UIAssignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: usability
Version: 2.0   
Target Milestone: 2.0 F4   
Hardware: PC   
OS: HP-UX   
Whiteboard:

Description Grant Gayed CLA 2002-06-13 12:37:28 EDT
F3, likely post-2.0

This probably only happens on hpux because hpux currently does not auto-detect 
the vm that was used to launch Eclipse.  Steps:

- create a Hello World project
- when it opens to its Welcome page click its Run-time Workbench link
- get Problem dialog: Cannot locate JRE definition: "null".  Launch aborted.

A problem dialog shouldn't show "null" in its message.  A message directing the 
user to add a vm to the Java-Installed JREs page would be more helpful.
Comment 1 Dejan Glozic CLA 2002-06-13 15:41:59 EDT
A small problem in the code - we should check if the JRE name is null and use 
an alternative message if it is. Both cases are valid:

1) When the JRE name is not null but cannot be found (when JRE that was 
initially used was removed)
2) When no JRE has been detected.

We should report case 2) using a different message. Consider for F4.
Comment 2 Dejan Glozic CLA 2002-06-13 16:26:58 EDT
F4 candidate analysis:

Value: Replacing confusing error message with 'null' with a more meaningful one
Risk: Low - all it takes is to check if the VM name is null and use a different 
message string
Comment 3 Dejan Glozic CLA 2002-06-17 19:10:36 EDT
Fixed by showing a slightly different message when no JRE is found:

No JRE found to launch the run-time workbench. Launch aborted.

This is in contrast to the message when a JRE was used to launch the workbench
before but cannot be located now:

Cannot locate JRE definition: "{0}".  Launch aborted.