Bug 517517

Summary: Missing Icon for Project Explorer View
Product: [Eclipse Project] Platform Reporter: Tommaso Castrovillari <tommaso.castrovillari>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Lars.Vogel, loskutov, tommaso.castrovillari, Vikas.Chandra
Version: 4.6Keywords: investigate, needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Pictures of the described issue none

Description Tommaso Castrovillari CLA 2017-05-31 06:24:01 EDT
Created attachment 268653 [details]
Pictures of the described issue

Our Eclipse RCP Tool was updated from Mars to Neon.
After the update the icon in our Project Explorer View is missing and replaced by a red square.

We use the default Project Explorer View provided by the Eclipse Framework
Comment 1 Andrey Loskutov CLA 2017-05-31 07:48:12 EDT
Please provide exact info *which* icon is missing (path to the icon as it is used in your code). Most likely this is a result of the gif to png changes we had in multiple platform plugins. Most likely your code referenced the icon directly via path, and so the fix is to change your code.
Comment 2 Tommaso Castrovillari CLA 2017-06-08 08:36:29 EDT
Hi Andrey,

sorry for the late answer.

The Icon we are using is this one:

cprj_obj.gif

declared here:

super.initialize(configurer);
final String ICONS_PATH = "icons/full/";
final String PATH_OBJECT = ICONS_PATH + "obj16/";
@SuppressWarnings("restriction")
Bundle ideBundle = Platform.getBundle(IDEWorkbenchPlugin.IDE_WORKBENCH);
		declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT+"prj_obj.gif", true);
		declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT+"cprj_obj.gif", true);
Comment 3 Lars Vogel CLA 2017-06-08 09:12:35 EDT
We switched to .PNG files. Can you try changing gif to png?
Comment 4 Tommaso Castrovillari CLA 2017-06-09 03:14:24 EDT
Hi Lars,

changing to .png did the job. Thank you all for your support !