|File location in Eclipse plugin jar [message #885758]
||Wed, 13 June 2012 14:39
| Christoph Bach
Registered: June 2012
I have written an editor as an Eclipse plugin. It works fine when running in a new Eclipse runtime, but after exporting the project to a jar, it says
"URI is not hierarchical"
when I hit the finish button.
I think the problem is that I load a default file when creating a new one and I can't access it anymore after creating the jar.
What I do to get the File is something like this:
bundle = Platform.getBundle("GameModeler");
file = new File(FileLocator.resolve(bundle.getEntry()).toURI());
I found something with Plugin#getStateLocation(), but I don't know how to use this method in my plugin.
Can you help me with this?
Powered by FUDForum
. Page generated in 0.01431 seconds