Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Path in ImageLoader.load() method
Path in ImageLoader.load() method [message #547023] Thu, 15 July 2010 04:44 Go to next message
Anubhav Manak is currently offline Anubhav ManakFriend
Messages: 17
Registered: July 2009
Junior Member
In my plugin project, images are stored in a folder images

Project
|
|--src
|
|--images
|
|--abc.gif

Now, I want to load this image using Imageloader class but how can i specify this path in load method?
Re: Path in ImageLoader.load() method [message #547094 is a reply to message #547023] Thu, 15 July 2010 12:20 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Use Bundle#getEntry(*) to get the URL and hence the InputStream.

See
http://www.dzone.com/links/using_getresourceasstream_versus_ bundlegetentry.html

--
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: Path in ImageLoader.load() method [message #547238 is a reply to message #547094] Fri, 16 July 2010 05:34 Go to previous message
Anubhav Manak is currently offline Anubhav ManakFriend
Messages: 17
Registered: July 2009
Junior Member
Thanks for your reply
Previous Topic:Eclipse rcp 3.6 doesn't support Jdk1.4.2?
Next Topic:show TreeViewer: AssertionFailedException
Goto Forum:
  


Current Time: Thu Mar 28 15:06:11 GMT 2024

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

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

Back to the top