Bug 52857 [spell checking] spell checking does not work for reused editors
3.0 M7 0. enable spell checking 1. set the editor preference to close editors automatically (allow only 1 editor) 2. open a CU with misspelled words in the Java editor ==> observe: spell check warnings appear 3. open another CU with misspelled words in the Java editor ==> observe: no spell check warnings
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/spelling/SpellReconcileStrategy.java
*/
	public Locale getLocale() {
		final String locale= fPreferences.getString(ISpellCheckPreferenceKeys.SPELLING_LOCALE);
		if (locale.equals(fLocale.toString()))
			return fLocale;
		if (locale.length() >= 5)
			return new Locale(locale.substring(0, 2), locale.substring(3, 5));
		return SpellCheckEngine.getDefaultLocale();
	}
	/*
	 * @see org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellEventListener#handle(org.eclipse.jdt.internal.ui.text.spelling.engine.ISpellEvent)
	 */
	public void handle(final ISpellEvent event) {
		
		if (fRequestor != null) {
			
			final SpellProblem problem= new SpellProblem(event.getWord());
			
			problem.setSourceStart(event.getBegin());
			problem.setSourceEnd(event.getEnd());
			problem.setSentenceStart(event.isStart());
			problem.setDictionaryMatch(event.isMatch());
			
			try {
				problem.setSourceLineNumber(fDocument.getLineOfOffset(event.getBegin()) + 1);
			} catch (BadLocationException x) {
				
			}
			
			fRequestor.acceptProblem(problem);