1 11 package org.eclipse.jdt.internal.core.builder; 12 13 import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory; 14 import org.eclipse.jdt.internal.compiler.util.SimpleLookupTable; 15 16 import java.util.*; 17 18 public class ProblemFactory extends DefaultProblemFactory { 19 20 static SimpleLookupTable factories = new SimpleLookupTable(5); 21 22 private ProblemFactory(Locale locale) { 23 super(locale); 24 } 25 26 public static ProblemFactory getProblemFactory(Locale locale) { 27 ProblemFactory factory = (ProblemFactory) factories.get(locale); 28 if (factory == null) 29 factories.put(locale, factory = new ProblemFactory(locale)); 30 return factory; 31 } 32 } 33 | Popular Tags |