Bug 77598 [nls tooling] NLS hovers / Ctrl+Click not consistent for duplicate keys
20041103 With the following files, the key A.0 is duplicate. - Ctrl + Click: Junps to 'hello' - Hover over "A.0" in class A: shows 'world' public class A { String h= Messages.getString("A.0"); //$NON-NLS-1$ } messages.properties: A.0=hello A.0=world
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
ISourceViewer viewer= getSourceViewer();
			if (viewer == null)
				return;
				
			StyledText text= viewer.getTextWidget();
			if (text == null || text.isDisposed())
				return;
				
				
			int offset= 0;
			int length= 0;
			if (viewer instanceof ITextViewerExtension5) {
				
				ITextViewerExtension5 extension= (ITextViewerExtension5) viewer;
				IRegion widgetRange= extension.modelRange2WidgetRange(fActiveRegion);
				if (widgetRange == null)
					return;
					
				offset= widgetRange.getOffset();
				length= widgetRange.getLength();
				
			} else {
				
				IRegion region= viewer.getVisibleRegion();			
				if (!includes(region, fActiveRegion))
					return;		    
				
				offset= fActiveRegion.getOffset() - region.getOffset();
				length= fActiveRegion.getLength();
			}