Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:19 Go to next message
jan is currently offline janFriend
Messages: 2
Registered: November 2010
Junior Member
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 10:01 Go to previous messageGo to next message
Animesh Kumar is currently offline Animesh KumarFriend
Messages: 79
Registered: September 2010
Location: Bangalore
Member



Regards,
Animesh

[Updated on: Wed, 02 February 2011 10:02]

Report message to a moderator

Re: Don't get bitmaps in feature (trouble with getImageDescriptor) [message #653029 is a reply to message #651951] Tue, 08 February 2011 04:27 Go to previous messageGo to next message
jan is currently offline janFriend
Messages: 2
Registered: November 2010
Junior Member
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 13:23 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Fri Mar 29 09:00:44 GMT 2024

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

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

Back to the top