How to get the resources when the plugin install at eclipse?? [message #909403] |
Fri, 07 September 2012 05:03  |
Joe Lin Messages: 10 Registered: September 2012 |
Junior Member |
|
|
I develop a plugin which can copy a file from to another folder.
I can debug/running the plugin at workspaces.but can't running after drop it in plugins folder.
How can i get the resources under the plugin folder?
the code is
Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID);
resourceFile = FileLocator.toFileURL(bundle.getResource(File.separatorChar +"template" + File.separatorChar + fileType.getName()));
error is:
java.lang.NullPointerException
at org.eclipse.core.internal.runtime.Activator.getURLConverter(Activator.java:321)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:205)
[Updated on: Fri, 07 September 2012 05:19] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02154 seconds