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
children.addAll(Arrays.asList(type.getChildren()));
		
		assertTrue("a", children.size() == 19);
		for (int i= 0; i < children.size(); i++) {
			Object curr= children.get(i);
			assertTrue("b", curr instanceof IMember);
			IMember member= JavaModelUtil.findMemberInCompilationUnit(cu, (IMember) curr);
			assertEquals("b-" + i, curr, member);
		}
	}
	
	private void assertClasspathEntry(String name, IJavaElement elem, IPath path, int type) throws Exception {
		IPackageFragmentRoot root= JavaModelUtil.getPackageFragmentRoot(elem);
		assertNotNull(name + "-noroot", root);
		IClasspathEntry entry= JavaModelUtil.getRawClasspathEntry(root);
		assertNotNull(name + "-nocp", entry);
		assertEquals(name + "-wrongpath", entry.getPath(), path);
		assertTrue(name + "-wrongtype", type == entry.getEntryKind());
	}
	
	public void testGetRawClasspathEntry() throws Exception {
		IType type= JavaModelUtil.findType(fJProject1, "junit.extensions.ExceptionTestCase");
		assertElementName("ExceptionTestCase", type, IJavaElement.TYPE);
		IPath path= fJProject1.getProject().getFullPath().append("src");
		assertClasspathEntry("ExceptionTestCase", type, path, IClasspathEntry.CPE_SOURCE);
		
		type= JavaModelUtil.findType(fJProject1, "mylib.Foo");
		assertElementName("Foo", type, IJavaElement.TYPE);
		path= fJProject1.getProject().getFullPath().append(LIB.lastSegment());
		assertClasspathEntry("Foo", type, path, IClasspathEntry.CPE_LIBRARY);