Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Newbie: Eclipse product icons not showing in windows (Tycho build)(Taskbar and top left icons not being loaded)
Newbie: Eclipse product icons not showing in windows (Tycho build) [message #1786268] Sat, 28 April 2018 22:59 Go to next message
David G. is currently offline David G.Friend
Messages: 10
Registered: April 2015
Location: Madrid, Spain
Junior Member
Hi!

First, I'm not sure on which forum does this question belong. Please move the topic or correct me if it's wrongly placed.

It's my first try on creating a customized product, based on an Eclipse workbench and a feature created with Graphiti.

I followed a tutorial to get my product up and running with maven and Tycho (here). With my current setup I can do maven builds or launch my product from Eclipse and everything works ok.

I've created the icons for my product, I've got them as multi-layer .ico file and as separate bitmaps.

The .exe file for my product is being built ok, and it shows the icon from the .ico file, but the taskbar icon and the window top left icons are always shown as a red square. Besides I can't get my splash.bmp to show up while product is starting up.

Here's a pic showing my product.xml editor and the results:
https://i.imgur.com/BYoVB7I.png

This is my build section from product plugin pom.xml:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
  <artifactId>XXXXXXXX.product</artifactId>
	<packaging>eclipse-repository</packaging>
	<name>XXXXXXXXXXX  Product Project</name>
	<properties>
		<tycho.version>1.0.0</tycho.version>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<eclipse-repo.url>http://download.eclipse.org/releases/oxygen</eclipse-repo.url>
	</properties>
	<parent>
		<groupId>XXXXXXXXXXX</groupId>
		<artifactId>XXXXXXXXXXXX.parent</artifactId>
		<version>1.0.0-SNAPSHOT</version>
		<relativePath>../XXXXXXXXXXXXX.parent</relativePath>
	</parent>

	<build>
		<plugins>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-repository-plugin</artifactId>
				<version>${tycho.version}</version>
				<configuration>
					<includeAllDependencies>false</includeAllDependencies>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.eclipse.tycho</groupId>
				<artifactId>tycho-p2-director-plugin</artifactId>
				<version>${tycho.version}</version>
				<executions>
					<execution>
						<id>create-product-distributions</id>
						<goals>
							<goal>materialize-products</goal>
							<goal>archive-products</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>


I'm also attaching the .ico file (generated with gimp). This is how I generate them (using a script I found to generate all the required layers for different sizes and color dephts):
https://i.imgur.com/DIPc0VB.png

Any idea what I might be doing wrong?
  • Attachment: GraphDom.ico
    (Size: 293.24KB, Downloaded 183 times)

[Updated on: Sat, 28 April 2018 23:15]

Report message to a moderator

Re: Newbie: Eclipse product icons not showing in windows (Tycho build) [message #1786271 is a reply to message #1786268] Sun, 29 April 2018 04:39 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
The image shown in the window does not come from the product icon; that's just embedded in the *.exe which appears to be working, right? The image in the window comes from your product/application extension points. E.g., like this in Oomph's installer application/product plugin.xml:
   <extension
         id="application"
         point="org.eclipse.core.runtime.applications">
      <application
            cardinality="singleton-global"
            thread="main"
            visible="true">
         <run
               class="org.eclipse.oomph.setup.internal.installer.InstallerApplication">
         </run>
      </application>
   </extension>

   <extension id="product" point="org.eclipse.core.runtime.products">
      <product
          name="%product.name"
          description="%product.description"
          application="org.eclipse.oomph.setup.installer.application">
        <property name="appName" value="%application.name"/>
        <property
           name="windowImages"
           value="icons/oomph16.png,icons/oomph32.png,icons/oomph48.png,icons/oomph64.png,icons/oomph128.png,icons/oomph256.png">
        </property>
        <property
           name="titleImage"
           value="icons/simple/title.png">
        </property>
      </product>
   </extension>
Perhaps you've already done that correctly but forgot to ensure they are in the build.properties' bin.includes:
bin.includes = plugin.xml,\
               META-INF/,\
               .,\
               about.html,\
               plugin.properties,\
               icons/,\
               oomph32.png,\
               about.properties,\
               about.mappings,\
               about.ini,\
               splash.bmp,\
               html/,\
               fonts/
Note that this is also where we put the splash.bmp.

You can have a look at http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/products/org.eclipse.oomph.setup.installer.product and at http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup.installer for more details.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Newbie: Eclipse product icons not showing in windows (Tycho build) [message #1786584 is a reply to message #1786271] Mon, 07 May 2018 21:54 Go to previous message
David G. is currently offline David G.Friend
Messages: 10
Registered: April 2015
Location: Madrid, Spain
Junior Member
Thanks a lot for your response! And sorry for this late one, I've been one week out on vacation, far from any computer...

I'll take a look in detail with the info you provide. What you say makes sense, as I don't really have that application/product plugin or extension points defined. I just have org.eclipse.ui.ide.workbench as the application to run on my .product file:


https://i.imgur.com/8bH8GtO.png
Previous Topic:Unhandled event loop exception creating Java class
Next Topic:Repository location is Discarded (Not Responding) : SVN and hangs the application
Goto Forum:
  


Current Time: Thu Apr 25 20:48:51 GMT 2024

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

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

Back to the top