mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
new method removeResource().
This commit is contained in:
parent
d3a78188f1
commit
a28d92aa29
1 changed files with 13 additions and 1 deletions
|
@ -37,6 +37,11 @@ public class IndexModel {
|
|||
try {
|
||||
if (project != null) {
|
||||
project.setPersistentProperty(activationKey, prop);
|
||||
if (on) {
|
||||
addResource(project);
|
||||
} else {
|
||||
removeResource(project);
|
||||
}
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
|
@ -58,13 +63,20 @@ public class IndexModel {
|
|||
|
||||
/**
|
||||
* Add a resource to be index. Containers(Folder, projects)
|
||||
* resources are recusively search for C Files as define by
|
||||
* resources are recursively search for C Files as define by
|
||||
* CoreModel.isTranslationUnit().
|
||||
*/
|
||||
public void addResource(IResource resource) {
|
||||
manager.addResource(resource);
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the resource from the indexer list.
|
||||
*/
|
||||
public void removeResource(IResource resource) {
|
||||
manager.removeResource(resource);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add all the C files recurively going to all projects
|
||||
* identified as C Projects by CoreModel.
|
||||
|
|
Loading…
Add table
Reference in a new issue