fixed executables view merge problems - bug #'s 9562, 9568, 9571.
authorwpaul
Fri, 07 Aug 2009 13:48:23 -0500
changeset 391 c27198dd5405
parent 390 f043313928a0
child 392 6c8acd0bb50d
fixed executables view merge problems - bug #'s 9562, 9568, 9571.
debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/ui/executables/SymbianSourceFileRemapping.java
--- a/debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/ui/executables/SymbianSourceFileRemapping.java	Fri Aug 07 10:28:14 2009 -0500
+++ b/debuggercdi/com.nokia.cdt.debug.cw.symbian/src/com/nokia/cdt/debug/cw/symbian/ui/executables/SymbianSourceFileRemapping.java	Fri Aug 07 13:48:23 2009 -0500
@@ -16,7 +16,6 @@
 */
 package com.nokia.cdt.debug.cw.symbian.ui.executables;
 
-import org.eclipse.cdt.debug.core.executables.Executable;
 import org.eclipse.cdt.debug.core.executables.ISourceFileRemapping;
 import org.eclipse.cdt.debug.core.sourcelookup.ICSourceLocator;
 import org.eclipse.cdt.debug.internal.core.sourcelookup.CSourceLookupDirector;
@@ -34,13 +33,13 @@
 
 public class SymbianSourceFileRemapping implements ISourceFileRemapping {
 
-	public String remapSourceFile(Executable executable, String filePath) {
+	public String remapSourceFile(IPath executable, String filePath) {
 
 		String epocRoot = "";
-		String[] segs = executable.getPath().segments();
+		String[] segs = executable.segments();
 		for (int i = 0; i < segs.length; i++) {
 			if (segs[i].equalsIgnoreCase("epoc32"))
-				epocRoot = executable.getPath().removeLastSegments(segs.length - i).toOSString();				
+				epocRoot = executable.removeLastSegments(segs.length - i).toOSString();				
 		}
 		if (epocRoot.length() > 0)
 		{