mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +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() );
|
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 ) {
|
public boolean contains( ICBreakpoint breakpoint ) {
|
||||||
try {
|
try {
|
||||||
String handle = breakpoint.getSourceHandle();
|
String handle = breakpoint.getSourceHandle();
|
||||||
|
|
Loading…
Add table
Reference in a new issue