From 3a90ab9274caa9478ba71387779b2f3f02c02393 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Wed, 18 Dec 2002 17:25:38 +0000 Subject: [PATCH] Do not show the source lookup dialog if file name is not specified. --- debug/org.eclipse.cdt.debug.ui/ChangeLog | 4 ++++ .../eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index 97f31992a69..89a52d5720d 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,7 @@ +2002-12-18 Mikhail Khodjaiants + Do not show the source lookup dialog if file name is not specified. + * CUISourceLocator.java + 2002-12-17 Mikhail Khodjaiants Disable the association controls in the 'Attach Source Location" dialog if path is not absolute. * AttachSourceLocationBlock.java diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java index 22a503011e0..a44cd63fbc8 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java @@ -207,7 +207,7 @@ public class CUISourceLocator implements IAdaptable if ( res == null && fAllowedToAsk ) { IStackFrameInfo frameInfo = (IStackFrameInfo)stackFrame.getAdapter( IStackFrameInfo.class ); - if ( frameInfo != null ) + if ( frameInfo != null && frameInfo.getFile() != null && frameInfo.getFile().length() > 0 ) { showDebugSourcePage( frameInfo.getFile() ); if ( fNewLocationAttached )