On Wed, 9 Feb 2011, Petr Nejedlý wrote:

There are two approaches possible for this problem.
The simpler one would be to change ProjectionPreference to not call Class.forName(), but instead getProjections(), and iterate the registered _instances_ until getClass().getName() matches.

What about a getProjection(String name) function instead? This sounds like a clean interface for me.

Ciao
--
http://www.dstoecker.eu/ (PGP key available)
_______________________________________________
josm-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/josm-dev

Reply via email to