Bug 81128 [nls tooling] Accessor class detection constrained to those generated by NLS Wizard
200412142000: Steps to reproduce: - Open "HelpSearchPage.class" from binary project "org.eclipse.help.ide" -> The accessor class HelpIdeResources uses an unconventional resource bundle field. Search for static fields of type ResourceBundle whose name contains "bundle" independent of letter case.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/NLSKeyHyperlink.java
package org.eclipse.jdt.internal.ui.javaeditor;
import org.eclipse.swt.widgets.Display;
import org.eclipse.core.resources.IStorage;
import org.eclipse.jface.text.Assert;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.BadPartitioningException;
import org.eclipse.jface.text.FindReplaceDocumentAdapter;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IDocumentExtension3;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITypedRegion;
import org.eclipse.jface.text.hyperlink.IHyperlink;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.texteditor.IEditorStatusLine;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.StringLiteral;
import org.eclipse.jdt.internal.corext.refactoring.nls.AccessorClassReference;
import org.eclipse.jdt.internal.corext.refactoring.nls.NLSHintHelper;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.ui.propertiesfileeditor.IPropertiesFilePartitions;
import org.eclipse.jdt.internal.ui.propertiesfileeditor.PropertyKeyHyperlinkDetector;
/**
 * NLS key hyperlink.
 * 
 * @since 3.1
 */
public class NLSKeyHyperlink implements IHyperlink {