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

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

Introduction

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

Prototype

public TypeVector(IType type) 

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 {// www.j  av a 2  s. c  om
        return super.getRootClasses();
    }
}