|
27 | 27 | import org.eclipse.cdt.core.envvar.IEnvironmentVariableManager;
|
28 | 28 | import org.eclipse.cdt.core.language.settings.providers.ILanguageSettingsProvider;
|
29 | 29 | import org.eclipse.cdt.core.language.settings.providers.ILanguageSettingsProvidersKeeper;
|
30 |
| -import org.eclipse.cdt.core.model.CoreModel; |
31 | 30 | import org.eclipse.cdt.core.parser.util.StringUtil;
|
32 | 31 | import org.eclipse.cdt.core.settings.model.CIncludePathEntry;
|
33 | 32 | import org.eclipse.cdt.core.settings.model.ICConfigurationDescription;
|
34 | 33 | import org.eclipse.cdt.core.settings.model.ICFolderDescription;
|
35 | 34 | import org.eclipse.cdt.core.settings.model.ICLanguageSetting;
|
36 | 35 | import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
|
37 |
| -import org.eclipse.cdt.core.settings.model.ICProjectDescription; |
38 |
| -import org.eclipse.cdt.core.settings.model.ICProjectDescriptionManager; |
39 | 36 | import org.eclipse.cdt.core.settings.model.ICSettingEntry;
|
40 | 37 | import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
|
41 | 38 | import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
@@ -198,35 +195,6 @@ public static boolean removeInvalidIncludeFolders(ICConfigurationDescription con
|
198 | 195 | return hasChange;
|
199 | 196 | }
|
200 | 197 |
|
201 |
| - /** |
202 |
| - * This method adds the provided path to the include path of all |
203 |
| - * configurations and languages. |
204 |
| - * |
205 |
| - * @param project |
206 |
| - * The project to add it to |
207 |
| - * @param IncludePath |
208 |
| - * The path to add to the include folders |
209 |
| - * @see addLibraryDependency |
210 |
| - * {@link #addLibraryDependency(IProject, IProject)} |
211 |
| - */ |
212 |
| - public static void addIncludeFolder(IProject project, IPath IncludePath) { |
213 |
| - // find all languages |
214 |
| - ICProjectDescriptionManager mngr = CoreModel.getDefault().getProjectDescriptionManager(); |
215 |
| - ICProjectDescription projectDescription = mngr.getProjectDescription(project, true); |
216 |
| - ICConfigurationDescription configurationDescription = projectDescription.getDefaultSettingConfiguration(); |
217 |
| - addIncludeFolder(configurationDescription, IncludePath); |
218 |
| - |
219 |
| - projectDescription.setActiveConfiguration(configurationDescription); |
220 |
| - projectDescription.setCdtProjectCreated(); |
221 |
| - try { |
222 |
| - mngr.setProjectDescription(project, projectDescription, true, null); |
223 |
| - } catch (CoreException e) { |
224 |
| - Common.log(new Status(IStatus.ERROR, Const.CORE_PLUGIN_ID, Messages.Helpers_Could_not_add_folder |
225 |
| - + IncludePath.toOSString() + Messages.Helpers_To_include_path + project.getName(), e)); |
226 |
| - } |
227 |
| - |
228 |
| - } |
229 |
| - |
230 | 198 | public static void addCodeFolder(IProject project, Path toLinkFolder, String LinkName,
|
231 | 199 | ICConfigurationDescription configurationDescriptions[]) throws CoreException {
|
232 | 200 | for (ICConfigurationDescription curConfig : configurationDescriptions) {
|
|
0 commit comments