1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00

'performApply' of 'SourceLookupBlock' should check if the project in configuration is the same as project saved in the block.

Changed the message displayed when the source file is not found.
This commit is contained in:
Mikhail Khodjaiants 2003-12-05 20:36:41 +00:00
parent 1a4a0704fc
commit 565184adfa
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,12 @@
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
2003-11-26 Mikhail Khodjaiants
Fix for PR 47595: Referenced projects are not checked in the list of generic source locations.
* SourceLookupBlock.java

View file

@ -287,7 +287,7 @@ public class CDebugEditor extends CEditor
{
FileNotFoundElement element = (FileNotFoundElement)input.getAdapter( FileNotFoundElement.class );
if ( element != null )
fInputLabel.setText( MessageFormat.format( "The debugger can not find the file ''{0}''.", new String[] { element.getFullPath().toOSString() } ) );
fInputLabel.setText( MessageFormat.format( "Can not find the file ''{0}'' in the specified source locations.", new String[] { element.getFullPath().toOSString() } ) );
}
protected ScrolledComposite getScrolledComposite()

View file

@ -251,7 +251,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() );