Skip to main content



      Home
Home » Eclipse Projects » Equinox » how to read a file in another plugin?
how to read a file in another plugin? [message #905511] Thu, 30 August 2012 10:24 Go to next message
Eclipse UserFriend
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
Re: how to read a file in another plugin? [message #910852 is a reply to message #905511] Mon, 10 September 2012 09:56 Go to previous message
Eclipse UserFriend
Is there really a "src" package in your model bundle? com.kosala.model.src.Activator

PW
Previous Topic:How to terminate Equinox after first error?
Next Topic:Eclipse Will Not Run, Shows Large Log File Instead
Goto Forum:
  


Current Time: Fri Jul 04 09:10:15 EDT 2025

Powered by FUDForum. Page generated in 0.18421 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top