| how to read a file in another plugin? [message #905927] |
Fri, 31 August 2012 06:17 |
Kosala Yapa Messages: 133 Registered: September 2010 |
Senior Member |
|
|
Hi All,
I have model.ecore in a plugin com.kosala.model\model
com.kosala.model
-src
-\model\model.ecore
I need to read model.ecore, while i am in com.kosala.logic plugin by giving the relative path.
I followed this link <http://www.vogella.com/blog/2010/07/06/reading-resources-from-plugin/>
Problem:
My code gives NullPonterException
BundleContext bc=FrameworkUtil.getBundle(new com.kosala.model.src.Activator().getClass()).getBundleContext();
new com.kosala.osgi.Activator().start(bc);
Bundle bundle = bc.getBundle();
any help is appriciated.
Thanks in advance
K
|
|
|
Powered by
FUDForum. Page generated in 0.01516 seconds