From db634def0a25de623192fc7e885387076ef2d1da Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Tue, 15 Jun 2004 15:33:21 +0000 Subject: [PATCH] Move the get/set PathEntryStore to the CoreModel so we can sync the access --- .../org/eclipse/cdt/core/model/CoreModel.java | 29 ++++++++++---- .../internal/core/model/PathEntryManager.java | 39 ++++++++++++++++++- .../src/org/eclipse/cdt/core/CCorePlugin.java | 36 ----------------- .../ui/dialogs/cpaths/CPathPropertyPage.java | 3 +- .../cpaths/IncludesSymbolsPropertyPage.java | 4 +- 5 files changed, 61 insertions(+), 50 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java index 89d59f5758f..c17a940338a 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/core/model/CoreModel.java @@ -734,6 +734,27 @@ public class CoreModel { return pathEntryManager.getPathEntryContainerInitializer(containerID); } + /** + * Return the IPathEntryStore of the project. + * + * @param project + * @return + * @throws CoreException + */ + public static IPathEntryStore getPathEntryStore(IProject project) throws CoreException { + return pathEntryManager.getPathEntryStore(project, true); + } + + /** + * Set in the map the store, but not persisted. + * + * @param project + * @param store + */ + public static void setPathEntryStore(IProject project, IPathEntryStore store) { + pathEntryManager.setPathEntryStore(project, store); + } + /** * Validate a given path entries for a project, using the following rules: *