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:
parent
9d411ea3bc
commit
325f5713fa
1 changed files with 10 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue