Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Platform.getPlugin and Eclipse 3
Platform.getPlugin and Eclipse 3 [message #274718] Wed, 27 October 2004 17:00 Go to next message
Eclipse UserFriend
Originally posted by: alfmira.gmail.com

Hey Guys,

I have a history.xml file to which I would like to get access to.
Platform.getPlugin(String).getDescriptor().getInstaURL() doesn't work in
Eclipse 3. So, how can I obtain the path of this xml file?

Thanks a lot.
Re: Platform.getPlugin and Eclipse 3 [message #274798 is a reply to message #274718] Thu, 28 October 2004 11:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Platform.getBundle(String).getEntry("xyz.xml");

This will return the url to xyz.xml under your plugin. (Note: use
"abc/xyz.xml" if not in the root of the plugin).


--
Thanks,
Rich Kulp
Re: Platform.getPlugin and Eclipse 3 [message #274866 is a reply to message #274798] Fri, 29 October 2004 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alfmira.gmail.com

Hi,

This works fine while I'm running the plugin from the Runtime Workspace.
When I try to run as a RCP app, it is not able to find the XML document.
When I comment out the code that tries to get the XML doc, the RCP app
runs fine.

Rich Kulp wrote:

> Platform.getBundle(String).getEntry("xyz.xml");

> This will return the url to xyz.xml under your plugin. (Note: use
> "abc/xyz.xml" if not in the root of the plugin).
Re: Platform.getPlugin and Eclipse 3 [message #274867 is a reply to message #274866] Fri, 29 October 2004 12:38 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Take a look at the plugin directory in your RCP app, make sure the xml
file is in your plugin. When running Runtime Workspace it is looking at
your workspace's project for the plugin, but when running RCP it is
looking at your exported code. If not found at RCP it means its not there.

Note: don't forget to go to the build.properties file and mark your
xyz.xml file as being a member of the bin.includes entry. Otherwise the
pde won't export it when you build your plugin through the pde.


--
Thanks,
Rich Kulp
Previous Topic:Change composite
Next Topic:Problem with custom Ant plugin tasks
Goto Forum:
  


Current Time: Thu Jul 17 22:01:52 EDT 2025

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

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

Back to the top