Example usage for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getSuperInterfaces

List of usage examples for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getSuperInterfaces

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core.hierarchy TypeHierarchy getSuperInterfaces.

Prototype

@Override
public IType[] getSuperInterfaces(IType type) 

Source Link

Usage

From source file:org.eclipse.objectteams.otdt.tests.subhierarchy.OTSubTypeHierarchyTest016.java

License:Open Source License

public void testGetSuperInterfaces_T1R5() throws JavaModelException {
    _focusType = _T1R5;/*from   w  w  w . j  ava  2s  .  c o m*/

    TypeHierarchy hierarchy = new TypeHierarchy(_focusType, null, _focusType.getJavaProject(), true);
    hierarchy.refresh(new NullProgressMonitor());

    IType[] actual = hierarchy.getSuperInterfaces(_focusType);
    IType[] expected = new IType[] { _I1 };

    assertTrue(compareTypes(expected, actual));
}