| how to read a file in another plugin? [message #905511] |
Thu, 30 August 2012 10:24  |
Kosala Yapa Messages: 133 Registered: September 2010 |
Senior Member |
|
|
Hi All,
I have two plugins.
com.kosala.model
and
com.kosala.logic
Problem:
I need to get the path to model.ecore, which is located at com.kosala.model/model/model.ecore.
I tried :
Bundle bundle= FrameworkUtil.getBundle(com.kosala.model.src.Activator.class);
URL fileUrl = bundle.getEntry("model/model.ecore");
I always get bundle as null.
any support to resolve this issuse is appreciated.
Thanks in advance!
K
|
|
|
|
Powered by
FUDForum. Page generated in 0.05074 seconds