From 5d49e0d3f63757762fa670099ff1d7117152a4ea Mon Sep 17 00:00:00 2001
From: gprat <guylaine.prat@c-s.fr>
Date: Mon, 29 Jun 2020 13:41:28 +0200
Subject: [PATCH] Update documentation for deprecated method of
 DataProvidersManager

---
 src/site/markdown/configuration.md | 2 +-
 src/site/markdown/downloads.md     | 2 +-
 src/site/markdown/faq.md           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/site/markdown/configuration.md b/src/site/markdown/configuration.md
index adda1b79..d11f53a0 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 f2380dd8..204159d9 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 c4cbe2f9..77088e72 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
-- 
GitLab