1 11 package org.eclipse.jdt.internal.ui.text.java; 12 13 import java.util.Collection ; 14 import java.util.HashMap ; 15 import java.util.Iterator ; 16 import java.util.Map ; 17 18 import org.eclipse.core.commands.IParameterValues; 19 20 25 public final class ContentAssistComputerParameter implements IParameterValues { 26 29 public Map getParameterValues() { 30 Collection descriptors= CompletionProposalComputerRegistry.getDefault().getProposalCategories(); 31 Map map= new HashMap (descriptors.size()); 32 for (Iterator it= descriptors.iterator(); it.hasNext();) { 33 CompletionProposalCategory category= (CompletionProposalCategory) it.next(); 34 map.put(category.getDisplayName(), category.getId()); 35 } 36 return map; 37 } 38 } 39 | Popular Tags |