Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Don't get bitmaps in feature (trouble with getImageDescriptor)(getImageDescriptor doesn't return bitmaps in feature)
Don't get bitmaps in feature (trouble with getImageDescriptor) [message #651951] Wed, 02 February 2011 03:19 Go to next message
Eclipse UserFriend
Hi,

I am developing UI plugin and facing problem with getting bitmaps from the released plugin. This plugin is built as feature and distributed via update site.
If I execute the same code in the development EclipseIDE there is no problem and the bitmaps are loaded and visible in the plugin.

I am using getImageDescriptor to load bitmaps from plugin. Bitmaps are stored in the "icons" directory. Directory is included in binary build and bitmaps (icons directory) is included in jar file.

This code is working fine in the development EclipseIDE but not working in feature.

Activator.getImageDescriptor("icons/platform.bmp");


If I use GIF there is no problem. I am using this code
Activator.getImageDescriptor("icons/sample.gif");


Is there any reason why I can use bitmaps in development EclipseIDE but not in the feature?

Thanks,
Jan
Re: Don't get bitmaps in feature (trouble with getImageDescriptor) [message #651966 is a reply to message #651951] Wed, 02 February 2011 05:01 Go to previous messageGo to next message
Eclipse UserFriend

[Updated on: Wed, 02 February 2011 05:02] by Moderator

Re: Don't get bitmaps in feature (trouble with getImageDescriptor) [message #653029 is a reply to message #651951] Mon, 07 February 2011 23:27 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

after looking into the problem I found that the problem is caused by case sensitivity of the file path in the feature.

That means file path is case insensitive In development Eclipse IDE, but case sensitive in the feature.

I face this behaviour in the Eclipse IDE v. 3.6.1.
Jan
Re: Don't get bitmaps in feature (trouble with getImageDescriptor) [message #653097 is a reply to message #653029] Tue, 08 February 2011 08:23 Go to previous message
Eclipse UserFriend
On 02/07/2011 11:27 PM, jan wrote:
>
> That means file path is case insensitive In development Eclipse IDE, but
> case sensitive in the feature.

More correctly, the file path will be case insensitive while in the
workspace on windows, but case sensitive in PDE, feature jars, plugin
jars, and in workspaces on other OSes.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
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
Previous Topic:change default path nam
Next Topic:Why is commons-logging included in the infocenter WAR file?
Goto Forum:
  


Current Time: Tue Jul 22 19:33:37 EDT 2025

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

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

Back to the top