Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-12-05 13:30:44 -0500
committerMikhail Khodjaiants2003-12-05 13:30:44 -0500
commit0cc062f8ab133f1e914a96180d572b14941a8dcd (patch)
treef090d6880c73008abdf9d1c4baab3f6cedae4113 /debug
parenta042dbd4dd1fc6536b80661e82d046d33351ee64 (diff)
downloadorg.eclipse.cdt-0cc062f8ab133f1e914a96180d572b14941a8dcd.tar.gz
org.eclipse.cdt-0cc062f8ab133f1e914a96180d572b14941a8dcd.tar.xz
org.eclipse.cdt-0cc062f8ab133f1e914a96180d572b14941a8dcd.zip
'performApply' of 'SourceLookupBlock' should check if the project in configuration is the same as project saved in the block.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog
index ade723f386a..b57c1919df7 100644
--- a/debug/org.eclipse.cdt.debug.ui/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-05 Mikhail Khodjaiants
+ 'performApply' of 'SourceLookupBlock' should check if the project in configuration is the same as
+ project saved in the block.
+ * SourceLookupBlock.java
+
2003-12-04 Mikhail Khodjaiants
Changed the message displayed when the source file is not found.
* CDebugEditor.java
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java
index d6a87ff9f20..44b862bcea5 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupBlock.java
@@ -254,7 +254,7 @@ public class SourceLookupBlock implements Observer
if ( locator instanceof IAdaptable )
{
ICSourceLocator clocator = (ICSourceLocator)((IAdaptable)locator).getAdapter( ICSourceLocator.class );
- if ( clocator != null )
+ if ( clocator != null && getProject() != null && getProject().equals( getProjectFromLaunchConfiguration( configuration ) ) )
{
clocator.setSourceLocations( getSourceLocations() );
clocator.setSearchForDuplicateFiles( searchForDuplicateFiles() );

Back to the top