Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Load resources
Load resources [message #187283] Fri, 30 January 2004 11:54 Go to next message
Eclipse UserFriend
Originally posted by: amunoz.vectorsf.com

Hi,

I have a plugin that it need to load a xsl stylesheet from another plugin.

I get the stylesheet file name from an attribute of the extension
declaration:

<extension
point="com.example.stylesheet">
<stylesheet
name="Foo Stylesheet"
file="com/example/plugin/example.xsl"
id="fooStylesheet">
</stylesheet>
</extension>

When I try to load the stylesheet:

InputStream fileStream =
this.getClass().getClassLoader().getResourceAsStream(file);

The fileStream is null. The file exists and if I run this code under the
source plugin works fine, but if I run this code under the host plugin not
found the file. Why not found the file?

Thanks!
Re: Load resources [message #187315 is a reply to message #187283] Fri, 30 January 2004 12:39 Go to previous message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

First, test if the file is in the deployed plugin.
If not, add it to build.properties / bin.includes.

Sam Mesh - http://openrules.com
Life is very short, and there's no time,
For coding and testing, my friend.
Previous Topic:[HOWTO] use Differencer, CompareConfiguration, ICompareInput, IStructureCreator, StructureDiffViewe
Next Topic:How to programmatically save modified files?
Goto Forum:
  


Current Time: Sat Jul 19 21:54:14 EDT 2025

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

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

Back to the top