Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » export images into a product
export images into a product [message #512029] Wed, 03 February 2010 16:59 Go to next message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
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 18:00 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 09:58 Go to previous message
Luca Ferrari is currently offline Luca Ferrari
Messages: 159
Registered: November 2009
Senior Member
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: Mon Sep 22 04:20:45 GMT 2014

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

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