filename = phpLBP.getMarker().getResource().getProjectRelativePath();
filename = remoteSourcePath.append (filename);
} else {
- filename = phpLBP.getMarker().getResource().getLocation();
+ filename = phpLBP.getMarker().getResource().getFullPath();
}
String path = filename.toOSString();
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 ();
*/
public String getText(Object element) {
if (element != null && element.getClass() == LoadPathEntry.class)
- return ((LoadPathEntry) element).getProject().getLocation()
+ return ((LoadPathEntry) element).getProject().getFullPath()
.toOSString();
PHPDebugUiPlugin
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 != "") {
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);
}
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]);
*/
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 {
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) ) {