Commit RSE changes that were done in the debug projects.
authorEdward Mann <phpeclipse.dev@edmann.com>
Tue, 15 Jan 2008 05:45:56 +0000 (05:45 +0000)
committerEdward Mann <phpeclipse.dev@edmann.com>
Tue, 15 Jan 2008 05:45:56 +0000 (05:45 +0000)
net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java
net.sourceforge.phpeclipse.debug.ui/src/net/sourceforge/phpdt/internal/debug/ui/launcher/PHPEnvironmentTab.java
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPLaunchConfigurationDelegate.java
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourceLookupParticipant.java
net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugTarget.java

index 96919b2..111d95c 100644 (file)
@@ -245,7 +245,7 @@ public class PHPDBGProxy {
                        filename = phpLBP.getMarker().getResource().getProjectRelativePath();
                        filename = remoteSourcePath.append (filename);
                } else {
-                       filename = phpLBP.getMarker().getResource().getLocation();
+                       filename = phpLBP.getMarker().getResource().getFullPath();
                }
 
                String path = filename.toOSString();
@@ -272,7 +272,7 @@ public class PHPDBGProxy {
                                        localPath  = new Path (local);                          // Get the remote/server side path of the mapping
 
                                        if (localPath.isPrefixOf (filename)) {                  // Starts the remote/server side file path with the remote/server side mapping path
-                                                                                                                                                       // dann prefix abhängen und den remote path davorhägen
+                                                                                                                                                       // dann prefix abh�ngen und den remote path davorh�gen
                                                newpath = filename.removeFirstSegments (localPath.matchingFirstSegments (filename));
                                                newpath = remotePath.append (newpath);
                                                path    = newpath.toString ();
index 7831922..d46d8b2 100644 (file)
@@ -28,7 +28,7 @@ public class LoadPathEntryLabelProvider implements ILabelProvider {
         */
        public String getText(Object element) {
                if (element != null && element.getClass() == LoadPathEntry.class)
-                       return ((LoadPathEntry) element).getProject().getLocation()
+                       return ((LoadPathEntry) element).getProject().getFullPath()
                                        .toOSString();
 
                PHPDebugUiPlugin
index cd7ae8f..55b5718 100644 (file)
@@ -574,7 +574,7 @@ public class PHPEnvironmentTab extends AbstractLaunchConfigurationTab {
                                IProject project = ResourcesPlugin.getWorkspace().getRoot()
                                                .getProject(projectName);
                                if (project != null) {
-                                       IPath remotePath = project.getLocation();
+                                       IPath remotePath = project.getFullPath();
                                        String fileName = configuration.getAttribute(
                                                        PHPLaunchConfigurationAttribute.FILE_NAME, "");
                                        if (fileName != "") {
index 9ddb63d..23f538e 100644 (file)
@@ -79,7 +79,7 @@ public class PHPLaunchConfigurationDelegate extends LaunchConfigurationDelegate
                        abort(MessageFormat.format("PHP-Script {0} does not exist.", new String[] {file.getFullPath().toString()}), null);
                }
                
-               commandList.add(file.getLocation().toOSString());
+               commandList.add(file.getFullPath().toOSString());
 
                // Get the Debugport  from the preferences
                int debugPort=XDebugCorePlugin.getDefault().getPreferenceStore().getInt(IXDebugPreferenceConstants.DEBUGPORT_PREFERENCE);
index 3e7a34d..ad1235d 100644 (file)
@@ -145,7 +145,7 @@ public class PHPSourceLookupParticipant extends AbstractSourceLookupParticipant
                        }
                        IFile file = (IFile) objects[j];
 
-                       IPath path = new Path(file.getLocation().toString());
+                       IPath path = new Path(file.getFullPath().toString());
                        if (localPath.matchingFirstSegments(path) == localPath
                                        .segmentCount()) {
                                results.add(objects[j]);
index d032172..339cf1b 100644 (file)
@@ -248,7 +248,7 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, ILaunch
         */
        public void breakpointAdded(IBreakpoint breakpoint) {
                IMarker marker = breakpoint.getMarker();
-               IPath path = marker.getResource().getLocation();
+               IPath path = marker.getResource().getFullPath();
                IPath cp = path.removeLastSegments(1);
                List pathMap = null;
                try {
@@ -743,9 +743,9 @@ public class XDebugTarget extends XDebugElement implements IDebugTarget, ILaunch
                                                                        String endfilename;
                                                                        
                                                                        if (getProcess() == null) {
-                                                                               endfilename = marker.getResource().getLocation().lastSegment(); 
+                                                                               endfilename = marker.getResource().getFullPath().lastSegment(); 
                                                                        } else {
-                                                                               endfilename = marker.getResource().getLocation().toOSString();
+                                                                               endfilename = marker.getResource().getFullPath().toOSString();
                                                                        }
 
                                                                        if(PHPDebugUtils.unescapeString(filename).endsWith(endfilename) && (lineBreakpoint.getLineNumber() == lineNumber) ) {