1
0
Fork 0
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:
Sergey Prigogin 2012-04-30 19:55:56 -07:00
parent 025ae5751d
commit 64bd893b0b

View file

@ -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);
}
}