Community
Participate
Working Groups
Program icons are not shown in the external editors dialog. 1) Open Preferences->Workbench->File Editors->Select *.txt 2) Add -> Extenal editor See that the icons that apear in the dialog are all the same. The icon of the executable is not being showed. NOTES: EJP (9/21/2001 1:53:16 PM) See: 1GKEYOE: SWT:WIN2000 - Can't launch external editors. The icons have vars like %SystemRoot% and %Program files% on its path name.
PRODUCT VERSION: Win2000 - Eclipse Build 136.
See bug 4842
Error with Program class. Reassigning to Felipe.
Works for me, the icons are there. Eduardo, please reopen this PR you still can reproduce it.
Still a problem.
Christophe Cornu is working in something related, I hope he can help you
Eduardo: Can you look at your registry for the following key: HKEY_CLASSES_ROOT\txtfile\DefaultIcon\(Default) Mine is, can you verify yours? %SystemRoot%\system32\shell32.dll,-152 Open a dos console and expand the %SystemRoot%: C:\>echo %SystemRoot% Mine is: C:\WINDOWS What is yours?
The same.
Created attachment 2233 [details] debug version of Program
On Eduardo's machine, the returned ImageData is 20*20 instead of the more common one 16*16. The icon itself is well formed and can be displayed correctly (use Program.java for testing). There does not appear to be anything wrong at this level. The UI code later decides to discard the ImageData because its size is greater than the one of their default icon (16*16). Moving PR to UI.
The image size is dependent on the font on windows. If I use Large Fonts (125%) the icon is 20x20. If I use Small Fonts (normal) then the icon is 16X16. We have to following in ExternalProgramIconDescriptor //The images in GNOME are too big. Scaling them does not give nice result so return defaultImage; if(data.height > defaultImage.height || data.width > defaultImage.width) return defaultImage;
This is causing platform icons to not be used on Linux-GTK for many file types where icons are available. The reason the icons look bad is because there is no suitable scaling algorithm for large icons. I filed bug 97506 which describes the problem with ImageData.scaledTo().
There are currently no plans to work on this but I would be happy to look at a contribution.
*** Bug 84601 has been marked as a duplicate of this bug. ***
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. If the bug is still relevant, please remove the "stalebug" whiteboard tag.