Bug 105264 - [BIDI] need to add $nl$/ to icon paths for reversed icons
Summary: [BIDI] need to add $nl$/ to icon paths for reversed icons
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: Darin Wright CLA Friend
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 105008
  Show dependency tree
 
Reported: 2005-07-26 22:20 EDT by Karice McIntyre CLA Friend
Modified: 2005-08-05 10:49 EDT (History)
1 user (show)

See Also:


Attachments
org.eclipse.debug.ui project patch to fix icon paths (9.48 KB, patch)
2005-07-26 22:27 EDT, Karice McIntyre CLA Friend
no flags Details | Diff
updated patch (60.22 KB, patch)
2005-07-27 16:19 EDT, Kevin Barnes CLA Friend
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Karice McIntyre CLA Friend 2005-07-26 22:20:15 EDT
Target for 3.1.1 release (NL release).

In Eclipse 3.1, icons are being supplied for BiDi locales that will appear as 
if the icon has been reversed.  For all plugins that supply icons, some code 
changes are required to support this that do not appear to be present when 
running Eclipse in a BiDi locale (get BiDi fragments then run Eclipse with 
program argument -nl ar_EG).  The following 2 items need to be checked:
1. Paths to icons/images that can appear flipped must be prefixed with $nl$/ 
(e.g. $nl$/ICON_PATH) - this includes paths to icons and images in plugin.xml.
2. Must use Platform.find(Bundle, Path) to create the URL that is used to 
create the image descriptor.
See Tod's Eclipse blog entry for more details on the code changes required. 
http://todcreaseyeclipse.blogspot.com/

NOTE: Only icons that have the possibility of being flipped need to have this 
prefix added - you can leave the paths of other icons as they are for 3.1.1 if 
you want to keep changes to a minimum.  You can get the BiDi nl fragments from 
Cam-Thu Le so that you can see which of your icons have a reversed counterpart 
in BiDi locales.  

The following plugins of this component have been identified as requiring this 
check:
*org.eclipse.debug.ui

Questions about this issue can be directed to Karice McIntyre or Tod Creasey.
Comment 1 Karice McIntyre CLA Friend 2005-07-26 22:27:31 EDT
Created attachment 25338 [details]
org.eclipse.debug.ui project patch to fix icon paths

I used this plugin to help identify and remedy the problem originally reported
in bug 105008.
This patch, based on 3.2 (HEAD) stream, fixes the problem of reversed icons not
appearing when running under a BiDi locale by adding $nl$/ to the icon path and
using Platform.find(Bundle, Path) to create URL required to create the
ImageDescriptors for each icon.  

These changes also need to be made to the R3.1 maintenance stream.
Comment 2 Kevin Barnes CLA Friend 2005-07-27 12:53:50 EDT
Karice, you mention that we can leave the path of icons that will never be
flipped as they are for 3.1.1. Does this mean that we can do the same for 3.2,
or is the $nl$ fragment necessary for all icons in 3.2. 
Other than minimizing the number of changes, is there a reason not to just
change all icons now?
Comment 3 Karice McIntyre CLA Friend 2005-07-27 13:31:30 EDT
The $nl$/ part of the path is not mandatory for all icon paths in 3.2.  So 
there is no reason that I am aware of that should prevent you from changing all 
of your paths in the 3.2 stream to include the $nl$/ part.
Comment 4 Kevin Barnes CLA Friend 2005-07-27 16:19:49 EDT
Created attachment 25376 [details]
updated patch

$nl$'d all icons in plugin.xml
Comment 5 Kevin Barnes CLA Friend 2005-07-27 16:35:27 EDT
released patch to HEAD and 3_1_maintenance branches
Comment 6 Kevin Barnes CLA Friend 2005-07-27 16:36:28 EDT
Darin, please verify
Comment 7 Darin Wright CLA Friend 2005-08-05 10:49:45 EDT
Verified.