1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00

Do not show the source lookup dialog if file name is not specified.

This commit is contained in:
Mikhail Khodjaiants 2002-12-18 17:25:38 +00:00
parent 0cd54d6a88
commit 3a90ab9274
2 changed files with 5 additions and 1 deletions

View file

@ -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 2002-12-17 Mikhail Khodjaiants
Disable the association controls in the 'Attach Source Location" dialog if path is not absolute. Disable the association controls in the 'Attach Source Location" dialog if path is not absolute.
* AttachSourceLocationBlock.java * AttachSourceLocationBlock.java

View file

@ -207,7 +207,7 @@ public class CUISourceLocator implements IAdaptable
if ( res == null && fAllowedToAsk ) if ( res == null && fAllowedToAsk )
{ {
IStackFrameInfo frameInfo = (IStackFrameInfo)stackFrame.getAdapter( IStackFrameInfo.class ); IStackFrameInfo frameInfo = (IStackFrameInfo)stackFrame.getAdapter( IStackFrameInfo.class );
if ( frameInfo != null ) if ( frameInfo != null && frameInfo.getFile() != null && frameInfo.getFile().length() > 0 )
{ {
showDebugSourcePage( frameInfo.getFile() ); showDebugSourcePage( frameInfo.getFile() );
if ( fNewLocationAttached ) if ( fNewLocationAttached )