1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Doc enhancement

This commit is contained in:
John Cortell 2010-01-05 21:08:22 +00:00
parent 05653b2740
commit 858cf9e17a
2 changed files with 21 additions and 2 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2004, 2006 QNX Software Systems and others.
* Copyright (c) 2004, 2010 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -30,6 +30,7 @@ import org.eclipse.core.runtime.IExtensionPoint;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Platform;
import org.eclipse.debug.core.ILaunchManager;
import org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector;
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
import org.eclipse.debug.core.sourcelookup.ISourceContainerType;
@ -40,6 +41,14 @@ import org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer;
/**
* C/C++ source lookup director.
*
* Most instantiations of this class are transient, created through
* {@link ILaunchManager#newSourceLocator(String)}. A singleton is also created
* to represent the global source locators.
*
* An instance is either associated with a particular launch configuration or it
* has no association (global).
*
*/
public class CSourceLookupDirector extends AbstractSourceLookupDirector {

View file

@ -228,6 +228,16 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
director.setSourceContainers((ISourceContainer[]) containerList.toArray(new ISourceContainer[containerList.size()]));
}
/**
* Add a path mapping source locator to the global director.
*
* @param missingPath
* the compilation source path that was not found on the local
* machine
* @param newSourcePath
* the location of the file locally; the user led us to it
* @throws CoreException
*/
private void addSourceMappingToCommon(IPath missingPath, IPath newSourcePath) throws CoreException {
CSourceLookupDirector director = CDebugCorePlugin.getDefault().getCommonSourceLookupDirector();
addSourceMappingToDirector(missingPath, newSourcePath, director);