Bug 517517 - Missing Icon for Project Explorer View
Summary: Missing Icon for Project Explorer View
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate, needinfo
Depends on:
Blocks:
 
Reported: 2017-05-31 06:24 EDT by Tommaso Castrovillari CLA
Modified: 2017-06-09 03:14 EDT (History)
4 users (show)

See Also:


Attachments
Pictures of the described issue (29.18 KB, application/x-zip-compressed)
2017-05-31 06:24 EDT, Tommaso Castrovillari CLA
no flags Details

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