From 1201ff5f7c4e61d87e2f7d35a1639924de7442ac Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Wed, 29 Oct 2003 20:54:40 +0000 Subject: [PATCH] CProjectSourceLocation.java: added 'toString' method. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 3 +++ .../internal/core/sourcelookup/CProjectSourceLocation.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 54bd26a9201..41b801dd5d7 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,6 @@ +2003-10-29 Mikhail Khodjaiants + * CProjectSourceLocation.java: added 'toString' method. + 2003-10-28 Mikhail Khodjaiants Search only in the parent folders if the given file path is absolute. Return a list only if the number of resulting files is > 1. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java index 2890bfde7a3..e505351be4e 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CProjectSourceLocation.java @@ -388,4 +388,9 @@ public class CProjectSourceLocation implements IProjectSourceLocation fNotFoundCache.clear(); fSearchForDuplicateFiles = search; } + + public String toString() + { + return ( getProject() != null ) ? fProject.toString() : ""; + } }