Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » LocationManager has disappeared ?
icon5.gif  LocationManager has disappeared ? [message #1413479] Thu, 28 August 2014 16:25 Go to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hello,
I am migrating a huge code base from Eclipse 3.6 to Eclipse 4.4.
it seems that the class
org.eclipse.core.runtime.adaptor.LocationManager
has been removed from the org.eclipse.osgi bundle.

This was a public API and I can't find any documentation on "4.4 Plug-in Migration Guide" in the "Platform Plug-in Developer Guide" saying why this was removed and what is the replacement.

Can any one tell my why ? and what are the altenatives ?
I have read in this post (https://www.eclipse.org/forums/index.php/mv/msg/638676/1233191/#msg_1233191 ) that it is replaced by org.eclipse.osgi.internal.location.EquinoxLocations which is not public !!.

Any information would be great.

SeB.

[Updated on: Thu, 28 August 2014 16:26]

Report message to a moderator

Re: LocationManager has disappeared ? [message #1413496 is a reply to message #1413479] Thu, 28 August 2014 17:23 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
How were you using this package (org.eclipse.core.runtime.adaptor)? It is not API for other bundles to use. It is exported with the friends directive:

org.eclipse.core.runtime.adaptor;x-friends:="org.eclipse.core.runtime",

So it really should not be used as API. You should be using the Location services that are registered with the OSGi Service registry to get the various org.eclipse.osgi.service.datalocation.Location service objects.
Re: LocationManager has disappeared ? [message #1413711 is a reply to message #1413496] Fri, 29 August 2014 08:43 Go to previous messageGo to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Ok fair enough, what about using the org.eclipse.core.runtime.Platform.getXXXXLocation() method, they are 'shortcuts' to the OSGI Location services. This seems more straight forward ?
Re: LocationManager has disappeared ? [message #1413795 is a reply to message #1413711] Fri, 29 August 2014 12:43 Go to previous message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
org.eclipse.core.runtime.Platform is fine to use. Some history on that class. It is a sort of legacy class itself form Eclipse 2.0, but it is not going away for the foreseeable future.
Previous Topic:Get bundle-id and version from a classname in a stacktrace
Next Topic:Performance
Goto Forum:
  


Current Time: Thu Apr 25 19:24:39 GMT 2024

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

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

Back to the top