Bug 82315 [nls tooling] Link to properties file does not work if file is open(ed) in text editor
I20050104-1600 The editor is opened but the key is not found.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/NLSKeyHyperlink.java
handleOpenPropertiesFileFailed(propertiesFile);
			return;
		}
		
		
		if (editor instanceof ITextEditor) {
			IRegion region= null;
			boolean found= false;
			
			
			IDocument document= JavaPlugin.getDefault().getPropertiesFileDocumentProvider().getDocument(editor.getEditorInput());
			if (document != null) {
				FindReplaceDocumentAdapter finder= new FindReplaceDocumentAdapter(document);
				PropertyKeyHyperlinkDetector detector= new PropertyKeyHyperlinkDetector((ITextEditor)editor);
				int offset= document.getLength() - 1;
				String keyName= fKeyStringLiteral.getLiteralValue();
				try {
					while (!found && offset >= 0) {
						region= finder.find(offset, keyName, false, true, false, false);
						if (region == null)
							offset= -1;
						else {
							
							IHyperlink[] hyperlinks= detector.detectHyperlinks(null, region, false);
							if (hyperlinks != null) {
								for (int i= 0; i < hyperlinks.length; i++) {
									IRegion hyperlinkRegion= hyperlinks[i].getHyperlinkRegion();
									found= keyName.equals(document.get(hyperlinkRegion.getOffset(), hyperlinkRegion.getLength()));
								}
							} else if (document instanceof IDocumentExtension3) {