mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fix for the tool-chain modification functionality
This commit is contained in:
parent
c451af9174
commit
bad9887e8d
2 changed files with 27 additions and 2 deletions
|
@ -14,9 +14,7 @@ import java.util.Collections;
|
|||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import org.eclipse.cdt.managedbuilder.core.IFileInfo;
|
||||
import org.eclipse.cdt.managedbuilder.core.IFolderInfo;
|
||||
import org.eclipse.cdt.managedbuilder.core.IResourceInfo;
|
||||
import org.eclipse.cdt.managedbuilder.core.ITool;
|
||||
import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
|
||||
import org.eclipse.cdt.managedbuilder.internal.core.ResourceConfiguration;
|
||||
|
|
|
@ -276,6 +276,33 @@ public class TcModificationUtil {
|
|||
}
|
||||
}
|
||||
|
||||
if(initialMap.size() != 0){
|
||||
for(Iterator iter = initialMap.entrySet().iterator(); iter.hasNext(); ){
|
||||
Map.Entry entry = (Map.Entry)iter.next();
|
||||
Object oPath = entry.getKey();
|
||||
|
||||
PerTypeSetStorage initStorage = (PerTypeSetStorage)entry.getValue();
|
||||
|
||||
if(!initStorage.isEmpty(true)){
|
||||
PerTypeSetStorage storage = new PerTypeSetStorage();
|
||||
|
||||
for(int i = 0; i < types.length; i++){
|
||||
Set set = initStorage.getSet(types[i], false);
|
||||
if(set != null && set.size() != 0){
|
||||
storage.getSet(types[i], true).addAll(set);
|
||||
}
|
||||
}
|
||||
|
||||
if(!storage.isEmpty(false)){
|
||||
result.put(oPath, storage);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue