Skip to content
Snippets Groups Projects
Commit 5d49e0d3 authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Update documentation for deprecated method of DataProvidersManager

parent 193e7058
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ into `orekit-data` and add the following lines at the start of your program (bef
first time):
File orekitData = new File("/path/to/the/folder/orekit-data");
DataProvidersManager.getInstance().addProvider(new DirectoryCrawler(orekitData));
DataContext.getDefault().getDataProvidersManager().addProvider(new DirectoryCrawler(orekitData));
This is sufficient to start working.
......
......@@ -76,7 +76,7 @@ file from the forge, to unzip it anywhere you want, rename the `orekit-data-mast
into `orekit-data` and add the following lines at the start of your program:
File orekitData = new File("/path/to/the/folder/orekit-data");
DataProvidersManager manager = DataProvidersManager.getInstance();
DataProvidersManager manager = DataContext.getDefault().getDataProvidersManager();
manager.addProvider(new DirectoryCrawler(orekitData));
This file contains the following data sets. Note that the data is updated only
......
......@@ -85,7 +85,7 @@ file from the forge, to unzip it anywhere you want, rename the `orekit-data-mast
into `orekit-data` and add the following lines at the start of your program:
File orekitData = new File("/path/to/the/folder/orekit-data");
DataProvidersManager manager = DataProvidersManager.getInstance();
DataProvidersManager manager = DataContext.getDefault().getDataProvidersManager();
manager.addProvider(new DirectoryCrawler(orekitData));
Using a folder allows one to change the data in it after the initial download, e.g., adding new EOP files as they
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment