Bug 5755 Open Type dialog is missing types
I can't find any of the classes in some of my packages in the Open Type(Ctrl- Shift-T) dialog. They just aren't there... Class files exist for them. 20011106
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/JavaModelUtilTest.java
assertTrue("methName-nparam2", meth.getParameterTypes().length == paramTypeNames.length);
		assertEquals("methName-decltype", declaringTypeName, JavaModelUtil.getFullyQualifiedName(meth.getDeclaringType()));
	}
	public void testFindMethodInHierarchy() throws Exception {
		IType type= JavaModelUtil.findType(fJProject1, "junit.extensions.TestSetup");
		assertElementName("TestSetup", type, IJavaElement.TYPE);		
		
		assertFindMethodInHierarchy("run", new String[] { "junit.framework.TestResult" }, false, type, "junit.framework.Test");
		assertFindMethodInHierarchy("toString", new String[] {} , false, type, "java.lang.Object");
	}
	
	public void testHasMainMethod() throws Exception {
		IType type= JavaModelUtil.findType(fJProject1, "junit.samples.money.MoneyTest");
		assertElementName("MoneyTest", type, IJavaElement.TYPE);
		
		assertTrue("MoneyTest-nomain", JavaModelUtil.hasMainMethod(type));
		
		type= JavaModelUtil.findType(fJProject1, "junit.framework.TestResult");
		assertElementName("TestResult", type, IJavaElement.TYPE);
		
		assertTrue("TestResult-hasmain", !JavaModelUtil.hasMainMethod(type));
		
		type= JavaModelUtil.findType(fJProject1, "junit.samples.VectorTest");
		assertElementName("VectorTest", type, IJavaElement.TYPE);
		
		assertTrue("VectorTest-nomain", JavaModelUtil.hasMainMethod(type));
	}
	
}