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 testNoAccessorClassHint2() throws Exception {    	IPackageFragment pack = fSourceFolder.createPackageFragment("test", false, null);    	String klazz =     		"package test;\n" +    		"public class Test {" +			"	private String str=new Wrong().meth(\"whatever\");//$NON-NLS-1$\n" +			"}\n";    	    	String klazz2 =    		"package test;\n" +			"public class Wrong {\n" +			"	public void meth(String str) {};\n" +			"}\n";    	ICompilationUnit cu= pack.createCompilationUnit("Wrong.java", klazz2, false, null);    	cu= pack.createCompilationUnit("Test.java", klazz, false, null);    	        NLSHolder nlsHolder = NLSHolder.create(cu);        NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu);        assertEquals(null, hint.getMessageClass());    	    }