Bug 82581 [misc] Javadoc double-click strategy wrong for non-tags
I20050111-0800 Use an e-mail address inside Javadoc as test case.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavadocDoubleClickStrategy.java
int position= text.getSelectedRange().x;
		
		if (position < 0)
			return;
		IRegion word= getWordRegion(text.getDocument(), position);
		if (word != null)
			text.setSelectedRange(word.getOffset(), word.getLength());
	}
	
	/**
	 * Returns a region describing the word around <code>position</code>.
	 * 
	 * @param document the document
	 * @param position the offset around which to return the word
	 * @return the word's region, or <code>null</code> for no selection
	 */
	private IRegion getWordRegion(IDocument document, int position) {
		try {
			
			IRegion line= document.getLineInformationOfOffset(position);
			if (position == line.getOffset() + line.getLength())
				return null;
				
			fDocIter.setDocument(document, line);
			
			BreakIterator breakIter= BreakIterator.getWordInstance();
			breakIter.setText(fDocIter);
			int start= breakIter.preceding(position);
			if (start == BreakIterator.DONE)
				start= line.getOffset();