Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » export images into a product
export images into a product [message #512029] Wed, 03 February 2010 11:59 Go to next message
Eclipse UserFriend
Hi,
I've got a project that uses images for views, perspective and other items loading them from an img project subfolder. The plugin.xml looks like this:

  <view
            allowMultiple="false"
            class="hrpm.rcp.gui.view.SkillFamilyTableView"
            icon="img/skill.png"
            id="hrpm.rcp.gui.view.SkillFamilyView"
            name="Famiglie di competenze"
            restorable="true">
      </view>
      <view
            allowMultiple="false"
            class="hrpm.rcp.gui.view.SkillTableView"
            icon="img/skill.png"
            id="hrpm.rcp.gui.view.SkillTableView"
            name="Competenze"
            restorable="true">
      </view>



so for instance the SkillFamilyView has the img/skill.png image. Now, the project works fine when launched from inside Eclipse, but when I run it as a product I cannot see any image. I've noticed that the img subfolder is not included into the product final folder, but it should be since it is in the classpath of the project.
Am I doing something wrong?

Thanks
Re: export images into a product [message #512048 is a reply to message #512029] Wed, 03 February 2010 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Go to your build.properties file and make sure the "Binary" version
includes the "img" directory. Otherwise it will not be exported when
you deploy that plugin.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Re: export images into a product [message #512172 is a reply to message #512048] Thu, 04 February 2010 04:58 Go to previous message
Eclipse UserFriend
Thanks!
It was that simple!
Previous Topic:Get rid of Other...
Next Topic:how to add scroll bars to a details section in Master /Detail block
Goto Forum:
  


Current Time: Wed Jul 23 03:29:58 EDT 2025

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

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

Back to the top