Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 290712

Summary: Plug-in Manifest Editor can't find shared icons, resulting in warnings
Product: [Eclipse Project] PDE Reporter: Stijn van Drongelen <self>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: bugs.eclipse.org, curtis.windatt.public, Michael_Rennie
Version: 3.6Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=393763
Whiteboard: stalebug

Description Stijn van Drongelen CLA 2009-09-28 11:11:14 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729) YouAreAPirate
Build Identifier: 20090619-0625

When using ISharedImages constants for icons in the org.eclipse.ui.menus extension point, Eclipse warns me that it can't find those icons. For instance:

"Referenced resource 'IMG_TOOL_DELETE' in attribute 'icon' cannot be found"

However, according to the description of the attribute 'icon' of the element command, it is mentioned that "the path is [an icon file], or the ISharedImages constant." The resulting product also correctly shows the icon I chose.

When using lots of shared images in lots of plugin projects, these warnings also add a lot of noise to the Problem view, making it harder to spot the real (potential) errors.

Reproducible: Always

Steps to Reproduce:
1. In a plugin manifest, create a command under the org.eclipse.ui.menus extension point (within a menuContribution, for instance).
2. For the field icon, fill in a constant from ISharedImages (e.g. IMG_TOOL_UP).
3. Save the manifest, wait until Eclipse tried to parse/understand/build it.
Comment 1 Michael Rennie CLA 2009-09-28 11:26:35 EDT
moving to PDE UI
Comment 2 Curtis Windatt CLA 2009-09-28 12:38:05 EDT
Confirmed in I20090917-0100.  It is more difficult to fix because some icon fields only support relative paths while others support constants.
Comment 3 Stijn van Drongelen CLA 2009-09-30 04:00:24 EDT
Which icon fields only accept relative paths, and why?
Comment 4 Curtis Windatt CLA 2010-04-27 16:34:34 EDT
While this is a valid bug, the committers do not have time in 3.6 to investigate.
Comment 5 James Fry CLA 2012-10-22 04:54:23 EDT
(In reply to comment #4)
> While this is a valid bug, the committers do not have time in 3.6 to
> investigate.

Is there any way to suppress these warnings? I've had a look through preferences and can't see any way, and I don't having to accept that warnings are "business as usual".
Comment 6 Curtis Windatt CLA 2012-10-22 10:01:12 EDT
I believe the setting is PDE > Compilers > References > References to non-existent resources.
Comment 7 Eclipse Genie CLA 2019-08-22 05:23:34 EDT
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.

--
The automated Eclipse Genie.