mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Doc enhancement
This commit is contained in:
parent
05653b2740
commit
858cf9e17a
2 changed files with 21 additions and 2 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.IPath;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
import org.eclipse.core.runtime.Platform;
|
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.AbstractSourceLookupDirector;
|
||||||
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
|
import org.eclipse.debug.core.sourcelookup.ISourceContainer;
|
||||||
import org.eclipse.debug.core.sourcelookup.ISourceContainerType;
|
import org.eclipse.debug.core.sourcelookup.ISourceContainerType;
|
||||||
|
@ -40,6 +41,14 @@ import org.eclipse.debug.core.sourcelookup.containers.ProjectSourceContainer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* C/C++ source lookup director.
|
* 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 {
|
public class CSourceLookupDirector extends AbstractSourceLookupDirector {
|
||||||
|
|
||||||
|
|
|
@ -228,6 +228,16 @@ public class CSourceNotFoundEditor extends CommonSourceNotFoundEditor {
|
||||||
director.setSourceContainers((ISourceContainer[]) containerList.toArray(new ISourceContainer[containerList.size()]));
|
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 {
|
private void addSourceMappingToCommon(IPath missingPath, IPath newSourcePath) throws CoreException {
|
||||||
CSourceLookupDirector director = CDebugCorePlugin.getDefault().getCommonSourceLookupDirector();
|
CSourceLookupDirector director = CDebugCorePlugin.getDefault().getCommonSourceLookupDirector();
|
||||||
addSourceMappingToDirector(missingPath, newSourcePath, director);
|
addSourceMappingToDirector(missingPath, newSourcePath, director);
|
||||||
|
|
Loading…
Add table
Reference in a new issue