NLSHolder nlsHolder = NLSHolder.create(cu); NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu);
NLSHolder nlsHolder = NLSHolder.create(cu, new NLSInfo(cu)); NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu, new NLSInfo(cu));
    public void testResourceBundleHintWithDifferentPackagesAndClassGetName() throws Exception {        IPackageFragment pack = fSourceFolder.createPackageFragment("test", false, null);        String klazz =            "package test;\n" +        	"import test.foo.TestMessages;\n" +        	TEST_KLAZZ;        ICompilationUnit cu= pack.createCompilationUnit("Test.java", klazz, false, null);                IPackageFragment fooPackage = fSourceFolder.createPackageFragment("test.foo", false, null);        klazz =             "package test.foo;\n" +            "public class TestMessages {\n" +            "	private static final String BUNDLE_NAME = TestMessages.class.getName();\n" +            "	public static String getString(String s) {\n" +            "		return \"\"\n;" +            "	}\n" +            "}\n";        fooPackage.createCompilationUnit("TestMessages.java", klazz, false, null);                        NLSHolder nlsHolder = NLSHolder.create(cu);        NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu);        assertEquals("TestMessages.properties", hint.getResourceBundle());            }