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
else
			value= JavaHoverMessages.getString("NLSStringHover.NLSStringHover.missingKeyWarning"); 
		
		return toHtml(propertiesFile.getName(), value);
	}
	
	private String toHtml(String header, String string) {
		
		StringBuffer buffer= new StringBuffer();
		
		HTMLPrinter.addSmallHeader(buffer, header);
		HTMLPrinter.addParagraph(buffer, string);
		HTMLPrinter.insertPageProlog(buffer, 0);
		HTMLPrinter.addPageEpilog(buffer);
		return buffer.toString();
	}
	private IJavaElement getEditorInputJavaElement() {
		if (getEditor() instanceof CompilationUnitEditor)
			return JavaPlugin.getDefault().getWorkingCopyManager().getWorkingCopy(getEditor().getEditorInput());
		else if (getEditor() instanceof ClassFileEditor) {
			IEditorInput editorInput= getEditor().getEditorInput(); 
			if (editorInput instanceof IClassFileEditorInput)
				return ((IClassFileEditorInput)editorInput).getClassFile();
			
		}
		return null;
	}
	
}