Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:24 Go to next message
Kosala Yapa is currently offline Kosala YapaFriend
Messages: 159
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
Re: how to read a file in another plugin? [message #910852 is a reply to message #905511] Mon, 10 September 2012 13:56 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Apr 25 23:36:06 GMT 2024

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

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

Back to the top