diff --git a/src/site/markdown/configuration.md b/src/site/markdown/configuration.md index adda1b79e753a748194b31babd4fa53fdc40f861..d11f53a013f6a11ddb790423fe7c4cbd5c4305eb 100644 --- a/src/site/markdown/configuration.md +++ b/src/site/markdown/configuration.md @@ -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. diff --git a/src/site/markdown/downloads.md b/src/site/markdown/downloads.md index f2380dd86bfc1cce2a049f7ffb3cf04c45372934..204159d97d7d46ee73b7bd06cdb100b64f3b7842 100644 --- a/src/site/markdown/downloads.md +++ b/src/site/markdown/downloads.md @@ -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 diff --git a/src/site/markdown/faq.md b/src/site/markdown/faq.md index c4cbe2f96ef8b0ec65e289370bc3ad6d37454d9d..77088e7243c2bb33182327165477f34dde77c499 100644 --- a/src/site/markdown/faq.md +++ b/src/site/markdown/faq.md @@ -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