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/text/java/hover/NLSStringHover.java
*******************************************************************************/
package org.eclipse.jdt.internal.ui.text.java.hover;
import java.util.Properties;
import org.eclipse.core.resources.IStorage;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.Region;
import org.eclipse.ui.IEditorInput;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.dom.ASTNode;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.StringLiteral;
import org.eclipse.jdt.internal.corext.dom.NodeFinder;
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.javaeditor.ASTProvider;
import org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor;
import org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor;
import org.eclipse.jdt.internal.ui.javaeditor.IClassFileEditorInput;
import org.eclipse.jdt.internal.ui.javaeditor.JavaEditor;
import org.eclipse.jdt.internal.ui.text.HTMLPrinter;
/**
 * Provides externalized string as hover info for NLS key.
 * 
 * @since 3.1
 */
public class NLSStringHover extends AbstractJavaEditorTextHover {