1 11 package org.eclipse.pde.internal.build; 12 13 import java.util.*; 14 import org.eclipse.osgi.service.resolver.BundleDescription; 15 16 public class SourceFeatureInformation implements IPDEBuildConstants { 17 private Map sourceFeatureInformation = new HashMap(8); 22 23 public SourceFeatureInformation() { 24 for (Iterator iter = AbstractScriptGenerator.getConfigInfos().iterator(); iter.hasNext();) { 26 Config config = (Config) iter.next(); 27 sourceFeatureInformation.put(config, new HashSet()); 28 } 29 sourceFeatureInformation.put(Config.genericConfig(), new HashSet(2)); 30 } 31 32 public void addElementEntry(Config config, BundleDescription plugin) { 33 Set entry = (Set) sourceFeatureInformation.get(config); 34 entry.add(plugin); 35 } 36 37 public Map getElementEntries() { 38 return sourceFeatureInformation; 39 } 40 } 41 | Popular Tags |