private synchronized void resetSpellChecker() { if (fChecker != null) { ISpellDictionary dictionary= (ISpellDictionary)fLocaleDictionaries.get(fChecker.getLocale()); if (dictionary != null) dictionary.unload(); } fChecker= null; }
public synchronized final void unregisterDictionary(final ISpellDictionary dictionary) { fGlobalDictionaries.remove(dictionary); fLocaleDictionaries.values().remove(dictionary); dictionary.unload(); resetSpellChecker(); } }
private synchronized void resetSpellChecker() { if (fChecker != null) { ISpellDictionary dictionary= fLocaleDictionaries.get(fChecker.getLocale()); if (dictionary != null) dictionary.unload(); } fChecker= null; }
private synchronized void resetSpellChecker() { if (fChecker != null) { ISpellDictionary dictionary= fLocaleDictionaries.get(fChecker.getLocale()); if (dictionary != null) dictionary.unload(); } fChecker= null; }
@Override public synchronized final void unregisterDictionary(final ISpellDictionary dictionary) { fGlobalDictionaries.remove(dictionary); fLocaleDictionaries.values().remove(dictionary); dictionary.unload(); resetSpellChecker(); } }
@Override public synchronized final void unregisterDictionary(final ISpellDictionary dictionary) { fGlobalDictionaries.remove(dictionary); fLocaleDictionaries.values().remove(dictionary); dictionary.unload(); resetSpellChecker(); } }
public synchronized final void shutdown() { JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); ISpellDictionary dictionary= null; for (final Iterator iterator= fGlobalDictionaries.iterator(); iterator.hasNext();) { dictionary= (ISpellDictionary)iterator.next(); dictionary.unload(); } fGlobalDictionaries= null; for (final Iterator iterator= fLocaleDictionaries.values().iterator(); iterator.hasNext();) { dictionary= (ISpellDictionary)iterator.next(); dictionary.unload(); } fLocaleDictionaries= null; fUserDictionary= null; fChecker= null; }
@Override public synchronized final void shutdown() { JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); EditorsUI.getPreferenceStore().removePropertyChangeListener(this); ISpellDictionary dictionary= null; for (final Iterator<ISpellDictionary> iterator= fGlobalDictionaries.iterator(); iterator.hasNext();) { dictionary= iterator.next(); dictionary.unload(); } fGlobalDictionaries= null; for (final Iterator<ISpellDictionary> iterator= fLocaleDictionaries.values().iterator(); iterator.hasNext();) { dictionary= iterator.next(); dictionary.unload(); } fLocaleDictionaries= null; fUserDictionary= null; fChecker= null; }
@Override public synchronized final void shutdown() { JavaPlugin.getDefault().getPreferenceStore().removePropertyChangeListener(this); EditorsUI.getPreferenceStore().removePropertyChangeListener(this); ISpellDictionary dictionary= null; for (final Iterator<ISpellDictionary> iterator= fGlobalDictionaries.iterator(); iterator.hasNext();) { dictionary= iterator.next(); dictionary.unload(); } fGlobalDictionaries= null; for (final Iterator<ISpellDictionary> iterator= fLocaleDictionaries.values().iterator(); iterator.hasNext();) { dictionary= iterator.next(); dictionary.unload(); } fLocaleDictionaries= null; fUserDictionary= null; fChecker= null; }
fUserDictionary.unload(); fUserDictionary= null;
fUserDictionary.unload(); fUserDictionary= null;
fUserDictionary.unload(); fUserDictionary= null;