Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Do not show the source lookup dialog if file name is not specified

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.58
diff -u -r1.58 ChangeLog
--- ChangeLog 17 Dec 2002 23:09:27 -0000 1.58
+++ ChangeLog 18 Dec 2002 17:25:03 -0000
@@ -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
Index: src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java,v
retrieving revision 1.2
diff -u -r1.2 CUISourceLocator.java
--- src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java 17 Dec 2002 23:09:27 -0000 1.2
+++ src/org/eclipse/cdt/debug/ui/sourcelookup/CUISourceLocator.java 18 Dec 2002 17:25:03 -0000
@@ -207,7 +207,7 @@
   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 )

Back to the top