cdt/cdt_6_0_x/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/executables/StandardSourceFileRemapping.java
changeset 60 3982fab6369e
parent 37 c2bce6dd59e7
equal deleted inserted replaced
59:a612e067382b 60:3982fab6369e
    10  *******************************************************************************/
    10  *******************************************************************************/
    11 
    11 
    12 package org.eclipse.cdt.debug.internal.core.executables;
    12 package org.eclipse.cdt.debug.internal.core.executables;
    13 
    13 
    14 import org.eclipse.cdt.debug.core.CDebugCorePlugin;
    14 import org.eclipse.cdt.debug.core.CDebugCorePlugin;
    15 import org.eclipse.cdt.debug.core.executables.Executable;
       
    16 import org.eclipse.cdt.debug.core.executables.ISourceFileRemapping;
    15 import org.eclipse.cdt.debug.core.executables.ISourceFileRemapping;
    17 import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
    16 import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
    18 import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector;
    17 import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector;
    19 import org.eclipse.core.runtime.CoreException;
    18 import org.eclipse.core.runtime.CoreException;
       
    19 import org.eclipse.core.runtime.IPath;
    20 import org.eclipse.debug.core.DebugPlugin;
    20 import org.eclipse.debug.core.DebugPlugin;
    21 import org.eclipse.debug.core.ILaunch;
    21 import org.eclipse.debug.core.ILaunch;
    22 import org.eclipse.debug.core.ILaunchManager;
    22 import org.eclipse.debug.core.ILaunchManager;
    23 import org.eclipse.debug.core.model.ISourceLocator;
    23 import org.eclipse.debug.core.model.ISourceLocator;
    24 import org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage;
    24 import org.eclipse.debug.core.sourcelookup.containers.LocalFileStorage;
    25 
    25 
    26 public class StandardSourceFileRemapping implements ISourceFileRemapping {
    26 public class StandardSourceFileRemapping implements ISourceFileRemapping {
    27 
    27 
    28 	public String remapSourceFile(Executable executable, String filePath) {
    28 	public String remapSourceFile(IPath executable, String filePath) {
    29 
    29 
    30 		try {
    30 		try {
    31 			Object[] foundElements = CDebugCorePlugin.getDefault().getCommonSourceLookupDirector().findSourceElements(filePath);
    31 			Object[] foundElements = CDebugCorePlugin.getDefault().getCommonSourceLookupDirector().findSourceElements(filePath);
    32 
    32 
    33 			if (foundElements.length == 0) {
    33 			if (foundElements.length == 0) {