Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Plugins - How can I access files during development and deploy
- Plugins - How can I access files during development and deploy [message #64448] Thu, 05 June 2003 15:20 Go to next message
Eclipse UserFriend
Originally posted by: dhavrda.motive.com

I am trying to access a template file during development of my plugin. This
is being done in the wizard class openContentStream method. Here is what I
am currently doing:

URL url = new URL(MMEPlugin.getDefault().getDescriptor().getInstallURL(),
fileName);

return MMEPlugin.getDefault().openStream(new Path(url.getPath()));

Now that would give me the correct information if my plugin was deployed. I
have also tried

MMEPlugin.getDefault().getDescriptor().getPlugin().getStateL ocation()

which gives me the location to the runtime-workspace. But this does not
have my files in it.

Any ideas? Im new to plugin development.

thx,

dave
- Re: Plugins - How can I access files during development and deploy [message #65058 is a reply to message #64448] Fri, 06 June 2003 02:40 Go to previous message
Eclipse UserFriend
He.

If you are looking for a specific file resident in your plugin's install
directory, you would do like this:

URL url = MMEPlugin.getDefault().find(new Path(fileName));

Good Luck,
Emil

"David Havrda" <dhavrda@motive.com> skrev i meddelandet
news:bbo55l$jk6$1@rogue.oti.com...
> I am trying to access a template file during development of my plugin.
This
> is being done in the wizard class openContentStream method. Here is what
I
> am currently doing:
>
> URL url = new URL(MMEPlugin.getDefault().getDescriptor().getInstallURL(),
> fileName);
>
> return MMEPlugin.getDefault().openStream(new Path(url.getPath()));
>
> Now that would give me the correct information if my plugin was deployed.
I
> have also tried
>
> MMEPlugin.getDefault().getDescriptor().getPlugin().getStateL ocation()
>
> which gives me the location to the runtime-workspace. But this does not
> have my files in it.
>
> Any ideas? Im new to plugin development.
>
> thx,
>
> dave
>
>
Previous Topic:Branches in CVS Repositories view
Next Topic:[CVS] update workspace ?
Goto Forum:
  


Current Time: Tue Apr 29 03:35:58 EDT 2025

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

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

Back to the top