List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getImplementingClasses
@Override
public IType[] getImplementingClasses(IType type)
From source file:org.eclipse.objectteams.otdt.tests.subhierarchy.OTSubTypeHierarchyTest010.java
License:Open Source License
public void testGetImplementingClasses_interfaceA() throws JavaModelException { _focusType = _interfaceA;/*from ww w . j a v a 2 s . com*/ TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), true); hierarchy.refresh(new NullProgressMonitor()); IType[] actual = hierarchy.getImplementingClasses(_focusType); IType[] expected = new IType[] { _T2R1, // _T3R1 // indirect }; assertEquals(expected.length, actual.length); assertTrue(compareTypes(expected, actual)); }