1 11 12 package org.eclipse.jdt.internal.ui.text.spelling.engine; 13 14 import java.net.MalformedURLException ; 15 import java.net.URL ; 16 import java.util.Locale ; 17 18 23 public class LocaleSensitiveSpellDictionary extends AbstractSpellDictionary { 24 25 26 private final Locale fLocale; 27 28 29 private final URL fLocation; 30 31 39 public LocaleSensitiveSpellDictionary(final Locale locale, final URL location) { 40 fLocation= location; 41 fLocale= locale; 42 } 43 44 49 public final Locale getLocale() { 50 return fLocale; 51 } 52 53 56 protected final URL getURL() throws MalformedURLException { 57 return new URL (fLocation, fLocale.toString() + ".dictionary"); } 59 } 60 | Popular Tags |