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

When initializing the generic source locations list filter out non-generic locations.

This commit is contained in:
Mikhail Khodjaiants 2003-07-24 18:39:43 +00:00
parent 3b39a5f585
commit beb9e0d679
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2003-07-24 Mikhail Khodjaiants
When initializing the generic source locations list filter out non-generic locations.
* SourceLookupBlock.java
2003-07-22 Mikhail Khodjaiants
Check if the value that getName returns is not null.
* CDTDebugModelPresentation.java

View file

@ -342,7 +342,7 @@ public class SourceLookupBlock
List list = getReferencedProjects( project );
IProject[] refs = (IProject[])list.toArray( new IProject[list.size()] );
ICSourceLocation loc = getLocationForProject( project, locations );
boolean checked = ( loc != null );
boolean checked = ( loc != null && !((IProjectSourceLocation)loc).isGeneric() );
if ( loc == null )
loc = SourceLocationFactory.createProjectSourceLocation( project, true );
fGeneratedSourceListField.addElement( loc );