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

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

Introduction

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

Prototype

public IType remove(IType element) 

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 w ww .  ja  v a  2  s.co  m*/
        return super.getRootClasses();
    }
}