From c2ed9818ca52a4f687ba68e59d276f42b7ebcb1d Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Fri, 20 Dec 2002 22:21:32 +0000 Subject: [PATCH] Implementing the 'Source Lookup' property page. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 5 +++++ .../internal/core/sourcelookup/CDirectorySourceLocation.java | 2 ++ .../internal/core/sourcelookup/CProjectSourceLocation.java | 2 ++ 3 files changed, 9 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 6fb5f670db7..3a4483b0f8b 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,8 @@ +2002-12-18 Mikhail Khodjaiants + Implementing the 'Source Lookup' property page. + * CDirectorySourceLocation.java + * CProjectSourceLocation.java + 2002-12-18 Mikhail Khodjaiants Check if CValue has variables before calling 'getCDIVariables'. * CValue.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java index ecf7f3da763..1fa50350288 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/sourcelookup/CDirectorySourceLocation.java @@ -77,6 +77,8 @@ public class CDirectorySourceLocation implements ICSourceLocation return this; if ( adapter.equals( CDirectorySourceLocation.class ) ) return this; + if ( adapter.equals( IPath.class ) ) + return getDirectory(); return null; } 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 d3920a1a040..f9ac5ce9a0a 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 @@ -78,6 +78,8 @@ public class CProjectSourceLocation implements ICSourceLocation return this; if ( adapter.equals( CProjectSourceLocation.class ) ) return this; + if ( adapter.equals( IProject.class ) ) + return getProject(); return null; }