public boolean isCorrect(String word) { word= stripNonLetters(word); try { if (!fLoaded) { synchronized (this) { fLoaded= load(getURL()); if (fLoaded) compact(); } } } catch (MalformedURLException exception) { // Do nothing } final Object candidates= getCandidates(fHashProvider.getHash(word)); if (candidates == null) return false; else if (candidates instanceof String) { String candidate= (String)candidates; if (candidate.equals(word) || candidate.equals(word.toLowerCase())) return true; return false; } final ArrayList candidateList= (ArrayList)candidates; if (candidateList.contains(word) || candidateList.contains(word.toLowerCase())) return true; return false; }
@Override public boolean isCorrect(final String word) { if (word.charAt(0) == IHtmlTagConstants.HTML_TAG_PREFIX) return super.isCorrect(word); return false; }
CharsetDecoder decoder= Charset.forName(getEncoding()).newDecoder(); decoder.onMalformedInput(CodingErrorAction.REPORT); decoder.onUnmappableCharacter(CodingErrorAction.REPORT); hashWord(word); else try { return load(new URL(lowercaseUrlString)); } catch (MalformedURLException e) { JavaPlugin.log(e);
final Object candidates= getCandidates(hash); if (candidates == null) continue;
@Override public synchronized void unload() { JavaPlugin.getJavaCorePluginPreferences().removePropertyChangeListener(this); super.unload(); }
CharsetDecoder decoder= Charset.forName(getEncoding()).newDecoder(); decoder.onMalformedInput(CodingErrorAction.REPORT); decoder.onUnmappableCharacter(CodingErrorAction.REPORT); hashWord(word); else try { return load(new URL(lowercaseUrlString)); } catch (MalformedURLException e) { JavaPlugin.log(e);
final Object candidates= getCandidates(fHashProvider.getHash(word)); if (candidates == null) return;
@Override public synchronized void unload() { JavaPlugin.getJavaCorePluginPreferences().removePropertyChangeListener(this); super.unload(); }
@Override public boolean isCorrect(String word) { word= stripNonLetters(word); try { fLoaded= load(getURL()); if (fLoaded) compact(); final Object candidates= getCandidates(fHashProvider.getHash(word)); if (candidates == null) return false;
CharsetDecoder decoder= Charset.forName(getEncoding()).newDecoder(); decoder.onMalformedInput(CodingErrorAction.REPORT); decoder.onUnmappableCharacter(CodingErrorAction.REPORT); hashWord(word); else try { return load(new URL(lowercaseUrlString)); } catch (MalformedURLException e) { JavaPlugin.log(e);
@Override public boolean isCorrect(final String word) { if (word.charAt(0) == JAVADOC_TAG_PREFIX) return super.isCorrect(word); return false; }
final Object candidates= getCandidates(hash); if (candidates == null) continue;
public synchronized void unload() { final Plugin plugin= JavaCore.getPlugin(); if (plugin != null) plugin.getPluginPreferences().removePropertyChangeListener(this); super.unload(); }
@Override public boolean isCorrect(String word) { word= stripNonLetters(word); try { fLoaded= load(getURL()); if (fLoaded) compact(); final Object candidates= getCandidates(fHashProvider.getHash(word)); if (candidates == null) return false;
@Override public boolean isCorrect(final String word) { if (word.charAt(0) == IHtmlTagConstants.HTML_TAG_PREFIX) return super.isCorrect(word); return false; }
final Object candidates= getCandidates(hash); if (candidates == null) continue;
fLoaded= load(getURL()); if (fLoaded) compact(); neighborhood.add(hash); final Set<RankedWordProposal> candidates= getCandidates(word, sentence, neighborhood); neighborhood.clear(); final Set<RankedWordProposal> matches= getCandidates(word, sentence, neighborhood); getCandidates(word, sentence, candidates);
public boolean isCorrect(final String word) { if (word.charAt(0) == JAVADOC_TAG_PREFIX) return super.isCorrect(word); return false; }
final Object candidates= getCandidates(fHashProvider.getHash(word)); if (candidates == null) return;
fLoaded= load(getURL()); if (fLoaded) compact(); neighborhood.add(hash); final Set candidates= getCandidates(word, sentence, neighborhood); neighborhood.clear(); final Set matches= getCandidates(word, sentence, neighborhood); getCandidates(word, sentence, candidates);