Bug 18268

Summary: not finding images and files in NL-specific subdirectories
Product: [Eclipse Project] Platform Reporter: Jim des Rivieres <jeem>
Component: UIAssignee: DJ Houghton <dj.houghton>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: debbie_wilson, Randy_Giffen
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 18269, 18270, 18271    

Description Jim des Rivieres CLA 2002-05-29 21:37:39 EDT
build 200205291235

Setup
- Start eclipse.
- Open the about dialog
- Observe: There is a main image.
- Exit eclipse.

1. Copy the file <install>/eclipse/org.eclipse.platform_2.0.0/eclipse_lg.gif
down into an NL-specific subdirectory; i.e., move it to
<install>/eclipse/org.eclipse.platform_2.0.0/nl/en/eclipse_lg.gif

2. Delete <install>/eclipse/org.eclipse.platform_2.0.0/eclipse_lg.gif

3. Edit <install>/eclipse/org.eclipse.platform_2.0.0/about.ini
Change the value of the aboutImage property:
aboutImage=$nl$/eclipse_lg.gif

4. Start eclipse
5. Open the about dialog

Observe: There is no main image.

Expectation: It should have found it in.

6. Edit <install>/eclipse/org.eclipse.platform_2.0.0/about.ini
Change the value of the aboutImage property:
aboutImage=nl/en/eclipse_lg.gif
7. Start eclipse
8. Open the about dialog

Observe: There is a main image again.

This suggests that the UI is correctly passing the entire path 
to IPluginDescriptor.find, but that the "$nl$" path segment is not being 
handled correctly.
Comment 1 Randy Giffen CLA 2002-05-30 09:14:39 EDT
This is a UI problem. 
We were prefixing the file name with the nl string
The fix in AboutInfo is to change
     url = getDescriptor().find(new Path("$nl$").append(fileName));
to
     url = getDescriptor().find(new Path(fileName));