1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Add another 'contains' that uses a source file name/path to search.

This commit is contained in:
Ken Ryall 2006-04-28 03:24:32 +00:00
parent 9d411ea3bc
commit 325f5713fa

View file

@ -61,6 +61,16 @@ public class CSourceLookupDirector extends AbstractSourceLookupDirector {
return fSupportedTypes.contains( type.getId() );
}
public boolean contains( String source ) {
ISourceContainer[] containers = getSourceContainers();
for ( int i = 0; i < containers.length; ++i ) {
if ( contains( containers[i], source ) )
return true;
}
return false;
}
public boolean contains( ICBreakpoint breakpoint ) {
try {
String handle = breakpoint.getSourceHandle();