List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getRootClasses
@Override
public IType[] getRootClasses()
From source file:org.eclipse.objectteams.otdt.tests.subhierarchy.OTSubTypeHierarchyTest010.java
License:Open Source License
public void testGetRootClasses_T1R1() throws JavaModelException { _focusType = _T1R1;//from w w w.java 2 s .c o m TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), true); hierarchy.refresh(new NullProgressMonitor()); IType[] actual = hierarchy.getRootClasses(); IType[] expected = new IType[] { _objectType }; assertEquals(expected.length, actual.length); assertTrue(compareTypes(expected, actual)); }
From source file:org.eclipse.objectteams.otdt.tests.subhierarchy.OTSubTypeHierarchyTest010.java
License:Open Source License
public void testGetRootClasses_interfaceA() throws JavaModelException { _focusType = _interfaceA;//from w ww. j a va 2 s .c o m TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), true); hierarchy.refresh(new NullProgressMonitor()); IType[] actual = hierarchy.getRootClasses(); IType[] expected = new IType[] { _objectType }; assertEquals(expected.length, actual.length); assertTrue(compareTypes(expected, actual)); }