Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Missing project explorer icons after update of platform (git projects)(Updated Eclipse platform from 4.3 to 4.7 now project explorer icons are red dots)
Missing project explorer icons after update of platform (git projects) [message #1772161] Wed, 06 September 2017 08:35 Go to next message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
We updated our RCP application from 4.3 to 4.7
And after the update, the Project explorer is not showing icons of the projects.
Before it did show if it was git shared project or not, and an ">" if the project had uncommitted changes.

I guess I am missing something on the target platform but can figure out what.

Old as it should be:
index.php/fa/30622/0/

New: with red dots:
index.php/fa/30623/0/
  • Attachment: old_4_3.PNG
    (Size: 24.95KB, Downloaded 1276 times)
  • Attachment: new4_7.PNG
    (Size: 18.22KB, Downloaded 1221 times)
Re: Missing project explorer icons after update of platform (git projects) [message #1772189 is a reply to message #1772161] Wed, 06 September 2017 13:05 Go to previous messageGo to next message
Eclipse UserFriend
My guess: the images were moved into a separate bundle `org.eclipse.ui.images`.
Re: Missing project explorer icons after update of platform (git projects) [message #1772331 is a reply to message #1772189] Fri, 08 September 2017 07:49 Go to previous messageGo to next message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
As far as I can see org.eclipse.ui dont contain the pictures either.

Is it possible to make RCP or the platform to tell me what icon is is trying to find?
And know that in WPF (C#) you have snooping tools.
Re: Missing project explorer icons after update of platform (git projects) [message #1772338 is a reply to message #1772331] Fri, 08 September 2017 09:08 Go to previous messageGo to next message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
My target platform

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?><target name="TargetPlatform" sequenceNumber="348">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.nebula.feature.feature.group" version="1.3.0.201706221838"/>
<repository location="http://download.eclipse.org/nebula/releases/1.3.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.compare.egit.feature.group" version="1.2.1.201706130827"/>
<unit id="org.eclipse.emf.compare.feature.group" version="3.3.1.201706130827"/>
<unit id="org.eclipse.emf.compare.ide.ui.feature.group" version="3.3.1.201706130827"/>
<unit id="org.eclipse.emf.compare.rcp.ui.feature.group" version="3.3.1.201706130827"/>
<repository location="http://download.eclipse.org/modeling/emf/compare/updates/releases/3.3/R201706130827/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="epp.package.rcp" version="4.7.0.20170620-1800"/>
<unit id="org.eclipse.core.runtime.feature.feature.group" version="1.2.0.v20170518-1049"/>
<unit id="org.eclipse.e4.rcp.feature.group" version="1.6.0.v20170612-1255"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="2.13.0.v20170609-0928"/>
<unit id="org.eclipse.equinox.core.feature.feature.group" version="1.4.0.v20170518-1049"/>
<unit id="org.eclipse.equinox.executable.feature.group" version="3.7.0.v20170531-1133"/>
<unit id="org.eclipse.equinox.p2.core.feature.feature.group" version="1.4.0.v20170524-1345"/>
<unit id="org.eclipse.equinox.p2.extras.feature.feature.group" version="1.3.0.v20170524-1345"/>
<unit id="org.eclipse.equinox.p2.rcp.feature.feature.group" version="1.3.0.v20170524-1345"/>
<unit id="org.eclipse.equinox.p2.sdk.feature.group" version="3.10.0.v20170524-1345"/>
<unit id="org.eclipse.equinox.p2.user.ui.feature.group" version="2.3.0.v20170524-1345"/>
<unit id="org.eclipse.equinox.sdk.feature.group" version="3.13.0.v20170531-1133"/>
<unit id="org.eclipse.help.feature.group" version="2.2.100.v20170612-0950"/>
<unit id="org.eclipse.jgit.feature.group" version="4.8.0.201706111038-r"/>
<unit id="org.eclipse.pde.feature.group" version="3.13.0.v20170612-0950"/>
<unit id="org.eclipse.pde.source.feature.group" version="3.13.0.v20170612-0950"/>
<unit id="org.eclipse.platform.feature.group" version="4.7.0.v20170612-1255"/>
<unit id="org.eclipse.rcp.feature.group" version="4.7.0.v20170612-1255"/>
<unit id="org.eclipse.rcptt.module.nebula.feature.group" version="2.2.0.201612300718"/>
<unit id="org.eclipse.xtend.sdk.feature.group" version="2.12.0.v20170519-1412"/>
<unit id="org.eclipse.xtext.sdk.feature.group" version="2.12.0.v20170519-1412"/>
<repository location="http://download.eclipse.org/releases/oxygen/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.apache.commons.io" version="2.2.0.v201405211200"/>
<repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20170516192513/repository/"/>
</location>
</locations>
<environment>
<os>win32</os>
<ws>win32</ws>
<arch>x86_64</arch>
</environment>
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7_32bit"/>
</target>

Re: Missing project explorer icons after update of platform (git projects) [message #1772977 is a reply to message #1772338] Tue, 19 September 2017 15:43 Go to previous messageGo to next message
Eclipse UserFriend
Usually missing images are logged to the console. Check your <workspace>/.metadata/.log file.
Re: Missing project explorer icons after update of platform (git projects) [message #1773241 is a reply to message #1772977] Mon, 25 September 2017 10:02 Go to previous messageGo to next message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
Hi Brian..

<workspace>/.metadata/.log file.

Sadly dont show me anything.. :-(
Re: Missing project explorer icons after update of platform (git projects) [message #1773247 is a reply to message #1773241] Mon, 25 September 2017 13:02 Go to previous messageGo to next message
Eclipse UserFriend
A few questions:


  • Is this with a packaged product? Or in the debugger?
  • How are you building the product, and what does your product file look like? Are you including the org.eclipse.rcp feature (recommended) or are you including files by hand?
  • If you launch with "-console" you should get a `osgi>` prompt. Try typing `ss org.eclipse.ui.images` and report back what you see. (This won't work if you don't include the `org.eclipse.equinox.console` and `org.apache.felix.gogo*` bundles though.)

Re: Missing project explorer icons after update of platform (git projects) [message #1773260 is a reply to message #1772161] Mon, 25 September 2017 16:49 Go to previous messageGo to next message
Kenneth Lausdahl is currently offline Kenneth LausdahlFriend
Messages: 1
Registered: September 2017
Junior Member
In the Oxygen (4.7) version the icons seems to be in org.eclipse.ui_3.109.0.v20170411-1742.jar so make sure that it is included in the RCP

if thats already there then take a look at org.eclipse.buildship.ui_2.0.2.v20170420-0909.jar it seems to contain the project icons.


Try and use eclipse spy to find the icon name and then download Oxygen and run this in the plugin folder:

find . -name "*.jar" -exec unzip -l {} \; | grep png | grep proj

or whatever the name of the missing icons are.
Re: Missing project explorer icons after update of platform (git projects) [message #1773293 is a reply to message #1773247] Tue, 26 September 2017 08:42 Go to previous messageGo to next message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
Hi Brian,

Its missing both in the packed product and the one ran from Eclipse

Not sure what you mean by including files by hand.

I tried running the command:
index.php/fa/30837/0/
  • Attachment: command.PNG
    (Size: 2.45KB, Downloaded 1072 times)
Re: Missing project explorer icons after update of platform (git projects) [message #1773323 is a reply to message #1773293] Tue, 26 September 2017 13:11 Go to previous messageGo to next message
Eclipse UserFriend
How are you building your product? What does the .product file look like?

From the above, you're missing the org.eclipse.ui.images bundle, which now includes the workbench images, and hence why you're getting the red squares. My guess is that you are including a list of bundles, rather than including the org.eclipse.rcp feature. The org.eclipse.rcp feature pulls in the bundles required for an RCP app, including org.eclipse.ui.images.
Re: Missing project explorer icons after update of platform (git projects) [message #1774783 is a reply to message #1773323] Thu, 19 October 2017 14:36 Go to previous message
Thomas Axel is currently offline Thomas AxelFriend
Messages: 10
Registered: March 2017
Junior Member
Good news I found this thread: https://www.eclipse.org/forums/index.php/t/1079044/

And started looking at our ApplicationWorkbenchAdvisor, and similar to their problem our code had some of that aswell

Old code
 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);

New Code
 declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT, PATH_OBJECT + "prj_obj.png", true);
 declareWorkbenchImage(configurer, ideBundle, IDE.SharedImages.IMG_OBJ_PROJECT_CLOSED, PATH_OBJECT + "cprj_obj.png", true);


So the only change is that the picture now is png and not gif.

I guess the bundle at some point changed from being gif to only being png.
The bundle we use are eclipse.ui.ide

Thanks to everybody coming with inputs
Previous Topic:Unable to run exported rcp app on Mac OS X (x86)
Next Topic:Show About Dialog in RCP 4 Application
Goto Forum:
  


Current Time: Wed Apr 24 19:38:09 GMT 2024

Powered by FUDForum. Page generated in 0.05083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top