Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to obtain the absolute path of the workbench installation
How to obtain the absolute path of the workbench installation [message #68458] Thu, 26 June 2003 21:49 Go to next message
Eclipse UserFriend
Originally posted by: lebowitz.finaltouch.com

I'm trying to obtain the full, absolute path of a subdirectory in one of my
custom plug-ins using the jdt API. I've only managed to obtain a relative
path using the getDescriptor().getInstallPath() method, but what want is the
full path to that directory from the file system root....

I'm guessing that there is some way to determine where the workbench is
installed within the local file system programmatically.... can someone help
out here???

Rob
Re: How to obtain the absolute path of the workbench installation [message #68471 is a reply to message #68458] Thu, 26 June 2003 22:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: burner.zclipse.org

On Thu, 26 Jun 2003 20:49:41 -0500, Robert J. Lebowitz wrote:

> I'm trying to obtain the full, absolute path of a subdirectory in one of
> my custom plug-ins using the jdt API. I've only managed to obtain a
> relative path using the getDescriptor().getInstallPath() method, but
> what want is the full path to that directory from the file system
> root....

What about getInstallURL()? That's what I always use whenever I need to
get at stuff in my plugin's directory.


> I'm guessing that there is some way to determine where the workbench is
> installed within the local file system programmatically.... can someone
> help out here???

It's not meant to be easy, as far as I can tell. I don't believe it's
quite possible yet, but the idea is that a plugin might very well have
been loaded off a web server and so there might not be any such
installation point in the local directory.

> Rob
Re: How to obtain the absolute path of the workbench installation [message #68968 is a reply to message #68471] Fri, 27 June 2003 11:07 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

See

http://eclipsewiki.swiki.net/114#platformurl

Wiki seems to be running really slow today though.

Rich
Previous Topic:org.eclipse.jdt.debug.core [API Help]
Next Topic:Generate getters and setters
Goto Forum:
  


Current Time: Thu May 08 21:29:27 EDT 2025

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

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

Back to the top