开发者

How to package icons on Eclipse RCP

开发者 https://www.devze.com 2023-01-22 19:54 出处:网络
I am developing a project in Eclipse RCP. Everything is working fine, expect the icons. I am able to get the icons when I am executing the code. But when I package it as a product, the icons are insid

I am developing a project in Eclipse RCP. Everything is working fine, expect the icons. I am able to get the icons when I am executing the code. But when I package it as a product, the icons are inside the jar f开发者_开发技巧ile and I get a file not found exception when I run the executable. How do package icons required for my app for my eclipse RCP.

Regards,


did you had icons folder in build.xml?


try defining icon in your product definition

   <extension
         id="product"
         point="org.eclipse.core.runtime.products">
      <product
            application="org.eclipsercp.hyperbola.application"
            name="Hyperbola Chat Client">
         <property
               name="aboutImage"
               value="icons/about.gif"/>
         <property
               name="aboutText"
               value="%aboutText"/>
         <property
               name="windowImages"
               value="icons/online.gif"/>
         <property
               name="appName"
               value="Hyperbola Chat Client">
         </property>
      </product>
   </extension>
0

精彩评论

暂无评论...
验证码 换一张
取 消