Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Getting the URL for a plugin
Getting the URL for a plugin [message #274882] Fri, 29 October 2004 14:36 Go to next message
Eclipse UserFriend
Originally posted by: bvkiran.hotmail.com

I am trying to load a URL for a plugin in development(in the workspace
directory not yet deployed).
If I call
where configElement is of type IConfigurationElement(coming from another
plugin also in development - com.abc).

_configElement.getDeclaringExtension().getDeclaringPluginDes criptor().getInstallURL()

returns /plugin/com.abc.1.0.0. But my plugin has not yet been deployed and
when I try to load images from this directory it fails. How can I get to
the plugin directory when I am still in development.

Thanks
Kiran
Re: Getting the URL for a plugin [message #274886 is a reply to message #274882] Fri, 29 October 2004 15:04 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Use instead, since getDeclaringPluginDescriptor is deprecated:

URL imageURL =
Platform.getBundle(configElement.getDeclaringExtension().get Namespace()).getEntry( "myimage.gif");

This will return a url to image in your plugin, or null if the image is
not there.

It will work whether in development or deployed.

--
Thanks,
Rich Kulp
Previous Topic:Load of Plugin JAR files
Next Topic:What projects do I need to build a base platform eclipse
Goto Forum:
  


Current Time: Wed Nov 05 18:36:33 EST 2025

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

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

Back to the top