mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
More flexible PDOMUpdateTask.setTranslationUnitSelection method.
This commit is contained in:
parent
025ae5751d
commit
64bd893b0b
1 changed files with 3 additions and 4 deletions
|
@ -49,7 +49,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
|
|||
private final IndexerProgress fProgress;
|
||||
private final int fUpdateOptions;
|
||||
private volatile IPDOMIndexerTask fDelegate;
|
||||
private ArrayList<ICElement> fFilesAndFolders= null;
|
||||
private ArrayList<ICElement> fFilesAndFolders;
|
||||
|
||||
public PDOMUpdateTask(IPDOMIndexer indexer, int updateOptions) {
|
||||
fIndexer= indexer;
|
||||
|
@ -155,8 +155,7 @@ public class PDOMUpdateTask implements IPDOMIndexerTask {
|
|||
return fDelegate != null && fDelegate.acceptUrgentTask(task);
|
||||
}
|
||||
|
||||
public void setTranslationUnitSelection(List<ICElement> filesAndFolders) {
|
||||
fFilesAndFolders= new ArrayList<ICElement>(filesAndFolders.size());
|
||||
fFilesAndFolders.addAll(filesAndFolders);
|
||||
public void setTranslationUnitSelection(List<? extends ICElement> filesAndFolders) {
|
||||
fFilesAndFolders= new ArrayList<ICElement>(filesAndFolders);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue