In my rcp plugin i want when i export my plugin to create a folder, lets say images in the exported folder. eg my exported folder now has configuration, p2, plugins and workspace folders. I want a default folder there to store images and can referee from inside the plugin.
Share
You are maybe going about this slightly incorrectly; you can package your images inside your plugin and then easily access them from code. Just create your image folder inside your plugin project and then select that folder on the “Binary Build” pane of the Build Configuration page of the plugin.xml editor.
You can then manage your images via a cache like this:
Where example.gif is in an images folder under the root of your plugin project.
See also: http://www.vogella.com/articles/EclipseRCP/article.html#tips_loadimages
and: http://obscuredclarity.blogspot.co.uk/2009/10/add-image-to-eclipse-rcp-application.html