[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Loading files from a Plug-in

Luís,

Likely doing Platform.getBundle("<id>").getEntry will find it even in the fragment. The findEntries method mentions fragments explicitly.


Luís Eduardo Jason Santos wrote:
Hello, People

I am responsible for an opensource plug-in for Lua development called LuaEclipse (http://luaeclipse.luaforge.net) and I am on the verge of releasing version 1.2 when I experience a serious difficulty that has already consumed two days. I suppose it's a matter of ignorance, for I am new to this Eclipse stuff. I hope you are able to help me.

I need to use some scripts on my plug-in so I managed to create plug-in fragments containing all script files I need ( consisting of a directory tree with lots os lua files under <plugin fragment>/lua/5.1/ ). This organization is important, for it follows the distribuition pattern of the script packages.

The problem is: I need direct access to these files from Java, and I am currently unable to find a way of loading those files (or at least determining their absolute path).

I hope someone can point me in the right direction.

Thanks in advance

--
Luís Eduardo Jason Santos