Bug 18268 - not finding images and files in NL-specific subdirectories
Summary: not finding images and files in NL-specific subdirectories
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P1 major (vote)
Target Milestone: ---   Edit
Assignee: DJ Houghton CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18269 18270 18271
  Show dependency tree
 
Reported: 2002-05-29 21:37 EDT by Jim des Rivieres CLA
Modified: 2002-05-30 09:20 EDT (History)
2 users (show)

See Also:


Attachments

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