Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ECLIPSE_HOME programmatically...
ECLIPSE_HOME programmatically... [message #48542] Mon, 26 May 2003 16:26 Go to next message
Eclipse UserFriend
Originally posted by: not.not.com

Hi,

I need to get ECLIPSE_HOME directory programmatically...is there a way to do
that...similar to how we can use getWorkspace().getRoot() to get thw
workspace directory location?

Thanks
A.V
Re: ECLIPSE_HOME programmatically... [message #48573 is a reply to message #48542] Mon, 26 May 2003 18:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

"A. V." <not@not.com> wrote in message news:batta0$lfr$1@rogue.oti.com...
> Hi,
>
> I need to get ECLIPSE_HOME directory programmatically...is there a way to
do
> that...similar to how we can use getWorkspace().getRoot() to get thw
> workspace directory location?

URL url = plugin.getDescriptor().getInstallURL();
url = Platform.resolve(url);

Bob
Re: ECLIPSE_HOME programmatically... [message #49970 is a reply to message #48573] Tue, 27 May 2003 11:14 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NOSPAM.us.ibm.com

That's not necessarily ECLIPSE_HOME, it is simply the install location
of that particular plugin. Plugins do not necessarily need to be
installed in only one particular directory for an installation. They may
be spread out (and in fact for WSAD they are in two separate
directories, one for the base Eclipse and on for the WSAD additions).

IF you want to get the current value of ECLIPSE_HOME (assuming it is
set) then you go to JDT to get it.

JavaCore.getClasspathVariable("ECLIPSE_HOME")

Remember though, this returns the ECLIPSE_HOME set up by that particular
workspace in the PDE preferences.

Rich
Previous Topic:Snapshot or 2.1.1 available?
Next Topic:How to make a plugin upgrade without confirming with the user?
Goto Forum:
  


Current Time: Sun Jun 15 10:08:33 EDT 2025

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

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

Back to the top