[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Loading Image Resources (Linux)

Many many thanks to you, Paul. Actually it did not resolve my problem per se, but during debugging (which is way easier using your line of code) i now found the true cause: a trailing whitespace character in the filepath of the affected files. Yet it remains a mystery for me, why this is a problem in Linux but not in windows. I much prefer the new codeline over the previous block (unfortunately i did not write that code myself, so i had no idea about that whole resource-handling before...).

regards

Markus


"Paul Webster" <pwebster@xxxxxxxxxx> schrieb im Newsbeitrag news:fuabb4$run$3@xxxxxxxxxxxxxxxxxxxx
Any reason why not to use org.eclipse.ui.plugin.AbstractUIPlugin.imageDescriptorFromPlugin(String, String) ... it has the load code in it already.

If you replace one of the non-functioning linux calls with this, does it 1) still work on windows? :-) and 2) now work on linux?

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/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm