[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: How do I access a file within my plugin?
|
//Get the OSGI Bundle for your plugin (rcp app) -- look in plugin.xml
// Then use the get Entry method to find the resource (It returns a URL)
InputStream is = Platform.getBundle( "myPluginId" )
.getEntry( "myConfigurationFile.xml" );
"David Havrda" <dhavrda@xxxxxxxxxx> wrote in message
news:ck161v$li1$1@xxxxxxxxxxxxxx
> I have a configuration file within my plug-in. I would like to access
this
> file but do not know how. Since this is a RCP I do not have a plug-in.
The
> file is in my root of my plug-in directory.
>
> Thanks a bunch,
> Dave
>
>