List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getSuperclass
@Override
public IType getSuperclass(IType type)
From source file:org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest009.java
License:Open Source License
public void testGetSuperclass_T11T00R0() throws JavaModelException { _focusType = _T11T00R0;/* w ww.ja va 2 s . c o m*/ TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), false); hierarchy.refresh(new NullProgressMonitor()); IType actual = hierarchy.getSuperclass(_focusType); IType expected = _T10T00R0; assertTrue(compareTypes(expected, actual)); }
From source file:org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest013.java
License:Open Source License
public void testGetImplicitSuperclass_TA2TB2TC2R1() throws JavaModelException { _focusType = _TA2TB2TC2R1;//from w w w . ja v a 2s. c o m TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), false); hierarchy.refresh(new NullProgressMonitor()); IType actual = hierarchy.getSuperclass(_focusType); IType expected = _TA1TB2TC2R1; assertTrue(compareTypes(expected, actual)); }