Example usage for org.eclipse.jdt.internal.core TypeVector elements

List of usage examples for org.eclipse.jdt.internal.core TypeVector elements

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.core TypeVector elements.

Prototype

IType[] elements

To view the source code for org.eclipse.jdt.internal.core TypeVector elements.

Click Source Link

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.TypeHierarchyConnector.java

License:Open Source License

public IType[] getRootClasses() {
    // This is a workaround.
    // because a role focus type is contained as
    // root class even with a resolved superclass.        
    if (this.classToSuperclass.keySet().contains(this.focusType)) {
        TypeVector result = new TypeVector(super.getRootClasses());
        result.remove(this.focusType);
        return result.elements();
    } else {/*from  ww  w . j a va  2 s  .  co  m*/
        return super.getRootClasses();
    }
}