From a5ae618c545a6fcb8d6767fd907a8924283fd261 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Fri, 24 Oct 2003 02:12:38 +0000 Subject: [PATCH] Remove reference to the old ICPathEntry implementation. --- .../src/org/eclipse/cdt/core/CCorePlugin.java | 55 ---- .../org/eclipse/cdt/core/ICDescriptor.java | 3 - .../src/org/eclipse/cdt/core/ICPathEntry.java | 205 -------------- .../cdt/internal/core/CDescriptor.java | 158 ----------- .../eclipse/cdt/internal/core/CPathEntry.java | 263 ------------------ 5 files changed, 684 deletions(-) delete mode 100644 core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java delete mode 100644 core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CPathEntry.java diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java index e0d238f59ca..a9ed936d214 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/CCorePlugin.java @@ -22,7 +22,6 @@ import org.eclipse.cdt.core.resources.IConsole; import org.eclipse.cdt.core.search.SearchEngine; import org.eclipse.cdt.internal.core.CDTLogWriter; import org.eclipse.cdt.internal.core.CDescriptorManager; -import org.eclipse.cdt.internal.core.CPathEntry; import org.eclipse.cdt.internal.core.model.BufferManager; import org.eclipse.cdt.internal.core.model.CModelManager; import org.eclipse.cdt.internal.core.model.DeltaProcessor; @@ -41,7 +40,6 @@ import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExtension; import org.eclipse.core.runtime.IExtensionPoint; -import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IPluginDescriptor; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; @@ -709,59 +707,6 @@ public class CCorePlugin extends Plugin { return provider; } - /** - * @param path - * @return - */ - public static ICPathEntry newProjectEntry(IPath path) { - return new CPathEntry(ICPathEntry.CDT_PROJECT, path, CPathEntry.NO_EXCLUSION_PATTERNS, null, null, null); - } - - /** - * @param path - * @param sourceAttachmentPath - * @param sourceAttachmentRootPath - * @return - */ - public static ICPathEntry newLibraryEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath, IPath sourceAttachmentRootPrefixMapping) { - return new CPathEntry( - ICPathEntry.CDT_LIBRARY, - path, - CPathEntry.NO_EXCLUSION_PATTERNS, - sourceAttachmentPath, - sourceAttachmentRootPath, - sourceAttachmentRootPrefixMapping); - } - - /** - * @param path - * @param exclusionPatterns - * @param outputLocation - * @return - */ - public static ICPathEntry newSourceEntry(IPath path, IPath[] exclusionPatterns) { - return new CPathEntry(ICPathEntry.CDT_SOURCE, path, exclusionPatterns, null, null, null); - } - - /** - * @param path - * @param sourceAttachmentPath - * @param sourceAttachmentRootPath - * @return - */ - public static ICPathEntry newVariableEntry(IPath path, IPath sourceAttachmentPath, IPath sourceAttachmentRootPath) { - return new CPathEntry(ICPathEntry.CDT_VARIABLE, path, null, sourceAttachmentPath, sourceAttachmentRootPath, null); - } - - /** - * @param path - * @param exclusionPatterns - * @return - */ - public static ICPathEntry newIncludeEntry(IPath path, IPath[] exclusionPatterns) { - return new CPathEntry(ICPathEntry.CDT_INCLUDE, path, exclusionPatterns, null, null, null); - } - private static final String MODEL = CCorePlugin.PLUGIN_ID + "/debug/model" ; //$NON-NLS-1$ private static final String INDEXER = CCorePlugin.PLUGIN_ID + "/debug/indexer"; private static final String INDEX_MANAGER = CCorePlugin.PLUGIN_ID + "/debug/indexmanager"; diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java index b1e0b21aea0..edc1c385758 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICDescriptor.java @@ -26,9 +26,6 @@ public interface ICDescriptor { public void remove(ICExtensionReference extension) throws CoreException; public void remove(String extensionPoint) throws CoreException; - public void setPathEntries(ICPathEntry[] entries) throws CoreException; - public ICPathEntry[] getPathEntries(); - public Element getProjectData(String id) throws CoreException; public void saveProjectData() throws CoreException; } diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java deleted file mode 100644 index 72f12157baf..00000000000 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ICPathEntry.java +++ /dev/null @@ -1,205 +0,0 @@ -/********************************************************************** - * Created on Mar 25, 2003 - * - * Copyright (c) 2002,2003 QNX Software Systems Ltd. and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Common Public License v0.5 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/cpl-v05.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation -***********************************************************************/ -package org.eclipse.cdt.core; - -import org.eclipse.core.runtime.IPath; - -public interface ICPathEntry { - - /** - * Entry kind constant describing a path entry identifying a - * library. A library is an archive containing - * consisting of pre-compiled binaries. - */ - int CDT_LIBRARY = 1; - - /** - * Entry kind constant describing a path entry identifying a - * required project. - */ - int CDT_PROJECT = 2; - - /** - * Entry kind constant describing a path entry identifying a - * folder containing source code to be compiled. - */ - int CDT_SOURCE = 3; - - /** - * Entry kind constant describing a path entry defined using - * a path that begins with a variable reference. - */ - int CDT_VARIABLE = 4; - - /** - * Entry kind constant describing a path entry identifying a - * include path. - */ - int CDT_INCLUDE = 5; - - /** - * Returns the kind of this path entry. - * - * @return one of: - *