Bug 20219 - Run-time Workbench link shows bad problem dialog
Summary: Run-time Workbench link shows bad problem dialog
Status: RESOLVED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC HP-UX
: P3 normal (vote)
Target Milestone: 2.0 F4   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2002-06-13 12:37 EDT by Grant Gayed CLA
Modified: 2002-06-17 19:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.