CoreSpellingProblem iProblem= new CoreSpellingProblem(problem.getOffset(), problem.getOffset() + problem.getLength() - 1, line, problem.getMessage(), word);
boolean dictionaryMatch= false; boolean sentenceStart= false; if (problem instanceof JavaSpellingProblem) { dictionaryMatch= ((JavaSpellingProblem)problem).isDictionaryMatch(); sentenceStart= ((JavaSpellingProblem) problem).isSentenceStart(); } CoreSpellingProblem iProblem= new CoreSpellingProblem(problem.getOffset(), problem.getOffset() + problem.getLength() - 1, line, problem.getMessage(), word, dictionaryMatch, sentenceStart);
		public void accept(SpellingProblem problem) {			if (fRequester != null) {				try {					int line= fDocument.getLineOfOffset(problem.getOffset()) + 1;					String word= fDocument.get(problem.getOffset(), problem.getLength());					CoreSpellingProblem iProblem= new CoreSpellingProblem(problem.getOffset(), problem.getOffset() + problem.getLength() - 1, line, problem.getMessage(), word);					fRequester.acceptProblem(iProblem);				} catch (BadLocationException x) {					// drop this SpellingProblem				}			}		}