Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to access Icons under src/main/resources folder in Mars.2
https://www.eclipse.org/forums/index.php/mv/msg/1078627/1735739/#msg_1735739
I have recently moved to Eclipse Mars.2 (4.5.2) from Eclipse Kepler (4.3) for development and building a jar using Maven 3.3.9. I am not able to access my icons placed under src/main/resources folder in a plug-in (say com.foo.bar.resource) from other plug-ins in my application. This happens for some Eclipse Extension Points like org.eclipse.ui.views or org.eclipse.ui.editors where icon attribute expects relative name of the icon. Whereas for other Extension Points like org.eclipse.ui.newWizards where icon attribute expects relative path of the icon, it works fine.
My resource plug-in folder structure is like this:
I did not face this problem in Eclipse Kepler and everything worked fine. I was able to access icons placed under src/main/resources folder in resource plugin from all Eclipse Extension Points.
I would like to understand difference between relative path and relative name which are used for icon attribute value in Eclipse Extension Points. Because, I face issue wherever relative name is expected for the icon and it works fine where icon attribute expects relative path of the icon. I could not find the difference on Eclipse online help.
Appreciate any help in understanding and resolving this issue.